aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/http_authentication.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2017-11-09 23:15:12 -0500
committerGitHub <noreply@github.com>2017-11-09 23:15:12 -0500
commit8c7967c9b916fe625e7ce10591b101abde3be4f5 (patch)
tree9e611068c3054cd192307870c4645bc8dd311dbf /actionpack/lib/action_controller/metal/http_authentication.rb
parent78fc8530d4aa3d5d82da78fc0a763ff1d0553121 (diff)
parent8c5115f95daa86cc9e79d6ad5c1076fee0f70903 (diff)
downloadrails-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/action_controller/metal/http_authentication.rb')
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
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