mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Update the query string when an absolute URI is used. Fixes #937
This commit is contained in:
parent
865058cd07
commit
d67293278c
2 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,7 @@ module Puma
|
|||
# The original URI requested by the client.
|
||||
REQUEST_URI= 'REQUEST_URI'.freeze
|
||||
REQUEST_PATH = 'REQUEST_PATH'.freeze
|
||||
QUERY_STRING = 'QUERY_STRING'.freeze
|
||||
|
||||
PATH_INFO = 'PATH_INFO'.freeze
|
||||
|
||||
|
|
|
@ -486,6 +486,8 @@ module Puma
|
|||
env[REQUEST_PATH] = uri.path
|
||||
|
||||
raise "No REQUEST PATH" unless env[REQUEST_PATH]
|
||||
|
||||
env[QUERY_STRING] = uri.query
|
||||
end
|
||||
|
||||
env[PATH_INFO] = env[REQUEST_PATH]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue