mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Referer and user agent are in Rack::Request
This commit is contained in:
parent
a1bf2f96ce
commit
df7faef68e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue