Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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)

removing the (broken) tests ... this patch is *tiny*

  • lib/action_controller/integration.rb

    old new  
    232232 
    233233          (headers || {}).each do |key, value| 
    234234            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/ 
    236236            env[key] = value 
    237237          end 
    238238