diff options
Diffstat (limited to 'lib/rack/auth/digest/params.rb')
-rw-r--r-- | lib/rack/auth/digest/params.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rack/auth/digest/params.rb b/lib/rack/auth/digest/params.rb index 2b226e62..f611b3c3 100644 --- a/lib/rack/auth/digest/params.rb +++ b/lib/rack/auth/digest/params.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Rack module Auth module Digest @@ -38,12 +40,12 @@ module Rack def to_s map do |k, v| - "#{k}=" << (UNQUOTED.include?(k) ? v.to_s : quote(v)) + "#{k}=#{(UNQUOTED.include?(k) ? v.to_s : quote(v))}" end.join(', ') end def quote(str) # From WEBrick::HTTPUtils - '"' << str.gsub(/[\\\"]/o, "\\\1") << '"' + '"' + str.gsub(/[\\\"]/o, "\\\1") + '"' end end |