diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-24 17:07:48 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-24 17:07:48 -0700 |
commit | c82248ea8647619cafe47d16945a45fcbf8196ef (patch) | |
tree | 6b64c48994cde729b2ed3044fd7b35b3ed519c5d /actionpack/lib/action_controller | |
parent | d4e1f58fd8ce70ae356c630dad68926ad6711fe3 (diff) | |
download | rails-c82248ea8647619cafe47d16945a45fcbf8196ef.tar.gz rails-c82248ea8647619cafe47d16945a45fcbf8196ef.tar.bz2 rails-c82248ea8647619cafe47d16945a45fcbf8196ef.zip |
remove more direct `env` mutations
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 9ac2339789..103986e44a 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -98,7 +98,9 @@ module ActionController set_header 'rack.input', StringIO.new(data) end - @env["PATH_INFO"] ||= generated_path + get_header("PATH_INFO") do |k| + set_header k, generated_path + end path_parameters[:controller] = controller_path path_parameters[:action] = action |