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

Changeset 2242

Show
Ignore:
Timestamp:
09/14/05 18:35:31 (3 years ago)
Author:
david
Message:

Fixed access to "Host" header with requests made by crappy old HTTP/1.0 clients #2124 [Marcel Molina]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r2230 r2242  
    11*SVN* 
     2 
     3* Fixed access to "Host" header with requests made by crappy old HTTP/1.0 clients #2124 [Marcel Molina] 
    24 
    35* Added easy assignment of fragment cache store through use of symbols for included stores (old way still works too) 
  • trunk/actionpack/lib/action_controller/cgi_process.rb

    r2230 r2242  
    8080 
    8181    def host 
    82       env["HTTP_X_FORWARDED_HOST"] || @cgi.host.to_s.split(":").first 
     82      env["HTTP_X_FORWARDED_HOST"] || @cgi.host.to_s.split(":").first || '' 
    8383    end 
    8484