From 6ec1aa433f540d1f0de9d75616bbfb0fde72d51f Mon Sep 17 00:00:00 2001 From: Kashyap Date: Tue, 4 Sep 2012 09:01:25 +0530 Subject: [PATCH] Issue #542 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/sinatra/sinatra/issues/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. --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 6995570146..140c11738e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1144,7 +1144,7 @@ error handlers) through the request 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