diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-22 15:52:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-22 15:52:50 -0700 |
commit | 39837b17097af1b6d225b4e610b309aefd1eb42b (patch) | |
tree | 32797adb69a9d0aeffa2906a0e2932a6868da9fc /actionpack/lib | |
parent | 64f6dc6dafd2f45481fde1b06841c4e23bcf290b (diff) | |
download | rails-39837b17097af1b6d225b4e610b309aefd1eb42b.tar.gz rails-39837b17097af1b6d225b4e610b309aefd1eb42b.tar.bz2 rails-39837b17097af1b6d225b4e610b309aefd1eb42b.zip |
metaprogram the HTTP_X_REQUEST_ID method
we're already doing this with a bunch of other header data.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 0f1c20b95e..1251121112 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -20,8 +20,6 @@ module ActionDispatch include ActionDispatch::Http::FilterParameters include ActionDispatch::Http::URL - HTTP_X_REQUEST_ID = "HTTP_X_REQUEST_ID".freeze # :nodoc: - autoload :Session, 'action_dispatch/request/session' autoload :Utils, 'action_dispatch/request/utils' @@ -36,6 +34,7 @@ module ActionDispatch HTTP_ACCEPT_LANGUAGE HTTP_CACHE_CONTROL HTTP_FROM HTTP_NEGOTIATE HTTP_PRAGMA HTTP_CLIENT_IP HTTP_X_FORWARDED_FOR HTTP_VERSION + HTTP_X_REQUEST_ID ].freeze ENV_METHODS.each do |env| @@ -269,10 +268,6 @@ module ActionDispatch alias_method :uuid, :request_id - def x_request_id # :nodoc: - get_header(HTTP_X_REQUEST_ID) - end - # Returns the lowercase name of the HTTP server software. def server_software (get_header('SERVER_SOFTWARE') && /^([a-zA-Z]+)/ =~ get_header('SERVER_SOFTWARE')) ? $1.downcase : nil |