diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:14:39 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:16:21 -0700 |
commit | ed4f50016ab0eab1ebbeac2fe1d0fd8712c7ee91 (patch) | |
tree | 5c232a2f34271090ad6512d565ee2f3aee39e7af /lib/unicorn | |
parent | 357fb0a21fdfe6ff3af522a2463248e20b2fa8be (diff) | |
download | unicorn-ed4f50016ab0eab1ebbeac2fe1d0fd8712c7ee91.tar.gz |
It's part of the HTTP/1.1 (rfc2616), so we might as well handle it in there and set PATH_INFO while we're at it. Also, make "OPTIONS *" test not fail Rack::Lint
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/http_request.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index a3a1d4d..c9c9503 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -1,5 +1,4 @@ require 'tempfile' -require 'uri' require 'stringio' # compiled extension @@ -129,13 +128,6 @@ module Unicorn # that client may be a proxy, gateway, or other intermediary # acting on behalf of the actual source client." @params[Const::REMOTE_ADDR] = socket.unicorn_peeraddr - - # It might be a dumbass full host request header - @params[Const::PATH_INFO] = ( - @params[Const::REQUEST_PATH] ||= - URI.parse(@params[Const::REQUEST_URI]).path) or - raise "No REQUEST_PATH" - @params[Const::QUERY_STRING] ||= '' @params[Const::RACK_INPUT] = @body @params.update(DEF_PARAMS) |