Skip to content
Browse files

Issue #542

#542. request["SOME_HEADER"]
is a little confusing since the [] operator on request object is a 
shortcut to the params hash. And thus, request["key"] is same as 
params["key"]. Updated the same thing.
  • Loading branch information...
1 parent 4184074 commit 6ec1aa433f540d1f0de9d75616bbfb0fde72d51f @kgrz kgrz committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
View
2 README.rdoc
@@ -1144,7 +1144,7 @@ error handlers) through the <tt>request</tt> method:
request.host # "example.com"
request.get? # true (similar methods for other verbs)
request.form_data? # false
- request["SOME_HEADER"] # value of SOME_HEADER header
+ request["some_param"] # value of some_param parameter. [] is a shorcut to the params hash.
request.referrer # the referrer of the client or '/'
request.user_agent # user agent (used by :agent condition)
request.cookies # hash of browser cookies

0 comments on commit 6ec1aa4

Please sign in to comment.
Something went wrong with that request. Please try again.