Permalink
Browse files

Referer and user agent are in Rack::Request

  • Loading branch information...
1 parent a1bf2f9 commit df7faef68e833efeef0dca3e07e0355f5042bb36 @josh josh committed Dec 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/request.rb
View
2 actionpack/lib/action_dispatch/http/request.rb
@@ -18,7 +18,7 @@ class Request < Rack::Request
HTTP_ACCEPT HTTP_ACCEPT_CHARSET HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE HTTP_CACHE_CONTROL HTTP_FROM
- HTTP_NEGOTIATE HTTP_PRAGMA HTTP_REFERER HTTP_USER_AGENT ].each do |env|
+ HTTP_NEGOTIATE HTTP_PRAGMA ].each do |env|
define_method(env.sub(/^HTTP_/n, '').downcase) do
@env[env]
end

0 comments on commit df7faef

Please sign in to comment.