Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes #542 #569

Merged
merged 1 commit into from

2 participants

@kgrz

#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.

@kgrz kgrz Issue #542
sinatra#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.
6ec1aa4
@rkh rkh merged commit ddbba34 into sinatra:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. @kgrz

    Issue #542

    kgrz authored
    sinatra#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.
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.