1
0
Fork 0
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:
Evan Phoenix 2016-04-07 10:47:04 -07:00
parent 865058cd07
commit d67293278c
2 changed files with 3 additions and 0 deletions

View file

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

View file

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