From 41e3dcf47d8ee855747681b80dab1c3b9d6bc457 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Sep 2009 18:21:09 -0700 Subject: expose the $content_length/$content_type variables Since the HTTP_CONTENT_LENGTH and HTTP_CONTENT_TYPE variables are not allowed by Rack, we need to allow access to the CGI variables instead. --- README.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 63a180a..7f042ee 100644 --- a/README.txt +++ b/README.txt @@ -43,6 +43,10 @@ somewhere inside the "Rails::Initializer.run do |config|" block: * $http_* - HTTP request headers (e.g. $http_user_agent) * $sent_http_* - HTTP response headers (e.g. $sent_http_content_length) +* $content_length - HTTP request body size + ($http_content_length is not allowed by Rack) +* $content_type - HTTP request content type + ($http_content_type is not allowed by Rack) * $cookie_* - HTTP request cookie (e.g. $cookie_session_id) Rack::Request#cookies must have been used by the underlying application to parse the cookies into a hash. -- cgit v1.2.3-24-ge0c7