mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
* Corrects URI parsing incorrect when behind proxy.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@542 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
c888a2fa04
commit
186899be8b
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ module Mongrel
|
|||
if not params[Const::REQUEST_PATH]
|
||||
# it might be a dumbass full host request header
|
||||
uri = URI.parse(params[Const::REQUEST_URI])
|
||||
params[Const::REQUEST_PATH] = uri.request_uri
|
||||
params[Const::REQUEST_PATH] = uri.path
|
||||
end
|
||||
|
||||
raise "No REQUEST PATH" if not params[Const::REQUEST_PATH]
|
||||
|
|
Loading…
Reference in a new issue