aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-08-12 17:50:47 -0400
committerGitHub <noreply@github.com>2016-08-12 17:50:47 -0400
commit3c8e9e8042933f5a4cdc1f1d2bd4a47f182c7391 (patch)
tree9cdcf0e9cb03bcb1de0ac3e64b267272467a21ed /actionpack/lib
parentdd5c0696d87d82ae118d74984dbfd7569cd4e9d8 (diff)
parent03ff576e5c583c7da91aa3e925db0c57be0cf39b (diff)
downloadrails-3c8e9e8042933f5a4cdc1f1d2bd4a47f182c7391.tar.gz
rails-3c8e9e8042933f5a4cdc1f1d2bd4a47f182c7391.tar.bz2
rails-3c8e9e8042933f5a4cdc1f1d2bd4a47f182c7391.zip
Merge pull request #26144 from javierjulio/patch-1
Update example in Http::Headers object to use `.from_hash`
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/http/headers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/headers.rb b/actionpack/lib/action_dispatch/http/headers.rb
index 91c45767ef..d5eef2987d 100644
--- a/actionpack/lib/action_dispatch/http/headers.rb
+++ b/actionpack/lib/action_dispatch/http/headers.rb
@@ -3,7 +3,7 @@ module ActionDispatch
# Provides access to the request's HTTP headers from the environment.
#
# env = { "CONTENT_TYPE" => "text/plain", "HTTP_USER_AGENT" => "curl/7.43.0" }
- # headers = ActionDispatch::Http::Headers.new(env)
+ # headers = ActionDispatch::Http::Headers.from_hash(env)
# headers["Content-Type"] # => "text/plain"
# headers["User-Agent"] # => "curl/7.43.0"
#