method
env_name
v4.1.8 -
Show latest stable
- Class:
ActionDispatch::Http::Headers
env_name(key)private
No documentation available.
# File actionpack/lib/action_dispatch/http/headers.rb, line 55
def env_name(key)
key = key.to_s
if key =~ HTTP_HEADER
key = key.upcase.tr('-', '_')
key = "HTTP_" + key unless CGI_VARIABLES.include?(key)
end
key
end