mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Referer and user agent are in Rack::Request
This commit is contained in:
@@ -18,7 +18,7 @@ module ActionDispatch
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user