Skip to content

Commit

Permalink
Issue #542
Browse files Browse the repository at this point in the history
#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
kgrz committed Sep 4, 2012
1 parent 4184074 commit 6ec1aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -1144,7 +1144,7 @@ error handlers) through the <tt>request</tt> method:
request.host # "example.com" request.host # "example.com"
request.get? # true (similar methods for other verbs) request.get? # true (similar methods for other verbs)
request.form_data? # false 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.referrer # the referrer of the client or '/'
request.user_agent # user agent (used by :agent condition) request.user_agent # user agent (used by :agent condition)
request.cookies # hash of browser cookies request.cookies # hash of browser cookies
Expand Down

0 comments on commit 6ec1aa4

Please sign in to comment.