1
0
Fork 0
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:
filipe 2007-08-11 03:45:12 +00:00
parent c888a2fa04
commit 186899be8b

View file

@ -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]