diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-29 18:09:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-29 18:09:14 -0700 |
commit | e5e2bbdc5303f6ff388c2dffe34b7e9335d3c953 (patch) | |
tree | 85fb497028e987f04efd9ad78ebaae3ce7bd42d7 /actionpack/lib/action_controller/metal | |
parent | 61b737671af2accd13498de57550fe4959e16d98 (diff) | |
download | rails-e5e2bbdc5303f6ff388c2dffe34b7e9335d3c953.tar.gz rails-e5e2bbdc5303f6ff388c2dffe34b7e9335d3c953.tar.bz2 rails-e5e2bbdc5303f6ff388c2dffe34b7e9335d3c953.zip |
env to get_header conversion
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index bbb38cf8fc..5ba6b4c645 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -203,7 +203,7 @@ module ActionController password = password_procedure.call(credentials[:username]) return false unless password - method = request.env['rack.methodoverride.original_method'] || request.env['REQUEST_METHOD'] + method = request.get_header('rack.methodoverride.original_method') || request.get_header('REQUEST_METHOD') uri = credentials[:uri] [true, false].any? do |trailing_question_mark| |