projects
/
watts
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85dc7db
)
Fix reliance on a deprecated rack variable!
v0.0.6
author
Pete Elmore
<pete@debu.gs>
Tue, 15 Mar 2011 23:49:51 +0000
(16:49 -0700)
committer
Pete 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
patch
|
blob
|
history
diff --git
a/lib/watts.rb
b/lib/watts.rb
index 096fc1bd7f8220d1b2fe20fb5924d8aa59d03ab8..cd842c9d42640f91f368a49bab74e7a18750e31d 100644
(file)
--- a/
lib/watts.rb
+++ b/
lib/watts.rb
@@
-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