diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2017-11-09 23:15:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 23:15:12 -0500 |
commit | 8c7967c9b916fe625e7ce10591b101abde3be4f5 (patch) | |
tree | 9e611068c3054cd192307870c4645bc8dd311dbf /actionpack/lib | |
parent | 78fc8530d4aa3d5d82da78fc0a763ff1d0553121 (diff) | |
parent | 8c5115f95daa86cc9e79d6ad5c1076fee0f70903 (diff) | |
download | rails-8c7967c9b916fe625e7ce10591b101abde3be4f5.tar.gz rails-8c7967c9b916fe625e7ce10591b101abde3be4f5.tar.bz2 rails-8c7967c9b916fe625e7ce10591b101abde3be4f5.zip |
Merge pull request #31111 from koic/bump_rubocop_to_0_51_0
Bump RuboCop to 0.51.0
Diffstat (limited to 'actionpack/lib')
-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 08d9b094f3..0c8132684a 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -248,7 +248,7 @@ module ActionController def decode_credentials(header) ActiveSupport::HashWithIndifferentAccess[header.to_s.gsub(/^Digest\s+/, "").split(",").map do |pair| key, value = pair.split("=", 2) - [key.strip, value.to_s.gsub(/^"|"$/, "").delete('\'')] + [key.strip, value.to_s.gsub(/^"|"$/, "").delete("'")] end] end |