Ticket #5864: fix_actioncontroller_integration_session_process_to_correctly_handle_http_headers.2.diff
| File fix_actioncontroller_integration_session_process_to_correctly_handle_http_headers.2.diff, 0.5 kB (added by dave.hoover@gmail.com, 2 years ago) |
|---|
-
lib/action_controller/integration.rb
old new 232 232 233 233 (headers || {}).each do |key, value| 234 234 key = key.to_s.upcase.gsub(/-/, "_") 235 key = "HTTP_#{key}" unless env.has_key?(key) || env=~ /^X|HTTP/235 key = "HTTP_#{key}" unless env.has_key?(key) || key =~ /^X|HTTP/ 236 236 env[key] = value 237 237 end 238 238