Fix reliance on a deprecated rack variable! v0.0.6
authorPete Elmore <pete@debu.gs>
Tue, 15 Mar 2011 23:49:51 +0000 (16:49 -0700)
committerPete Elmore <pete@debu.gs>
Tue, 15 Mar 2011 23:49:51 +0000 (16:49 -0700)
(cf. http://rack.rubyforge.org/doc/SPEC.html )

lib/watts.rb

index 096fc1bd7f8220d1b2fe20fb5924d8aa59d03ab8..cd842c9d42640f91f368a49bab74e7a18750e31d 100644 (file)
@@ -155,7 +155,7 @@ module Watts
                        rm = env['REQUEST_METHOD'].downcase.to_sym
                        return(Errors[400]) unless Resource::HTTPMethods.include?(rm)
 
-                       req_path ||= decypher_path env['REQUEST_PATH']
+                       req_path ||= decypher_path env['PATH_INFO']
                        resource_class, args = match req_path
 
                        if resource_class