Permalink
Browse files

Don't shadow host method

  • Loading branch information...
1 parent b7529ed commit c24a7cdd230ee0005add73b9d57bc859ddb57f83 @jeremy jeremy committed Aug 8, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/rack_process.rb
@@ -30,7 +30,7 @@ def initialize(env, session_options = DEFAULT_SESSION_OPTIONS)
SERVER_NAME SERVER_PROTOCOL
HTTP_ACCEPT HTTP_ACCEPT_CHARSET HTTP_ACCEPT_ENCODING
- HTTP_ACCEPT_LANGUAGE HTTP_CACHE_CONTROL HTTP_FROM HTTP_HOST
+ HTTP_ACCEPT_LANGUAGE HTTP_CACHE_CONTROL HTTP_FROM
HTTP_NEGOTIATE HTTP_PRAGMA HTTP_REFERER HTTP_USER_AGENT ].each do |env|
define_method(env.sub(/^HTTP_/n, '').downcase) do
@env[env]

0 comments on commit c24a7cd

Please sign in to comment.