diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-18 05:52:16 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-18 05:52:16 +0000 |
commit | fbd5cda6aad6db01bbca3d893a9970314a1bd52c (patch) | |
tree | 2e70ab43d258030cf3179c9d12fa79c7e54e6814 /lib/cgi/cookie.rb | |
parent | 3203ae53ffeea05c7719d4ba863e0ca492b305cd (diff) |
{lib,test}/cgi: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/cookie.rb')
-rw-r--r-- | lib/cgi/cookie.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb index 4cc050b90d..a2155edb77 100644 --- a/lib/cgi/cookie.rb +++ b/lib/cgi/cookie.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'cgi/util' class CGI # Class representing an HTTP cookie. @@ -143,7 +143,7 @@ class CGI # Convert the Cookie to its string representation. def to_s val = collect{|v| CGI.escape(v) }.join("&") - buf = "#{@name}=#{val}" + buf = "#{@name}=#{val}".dup buf << "; domain=#{@domain}" if @domain buf << "; path=#{@path}" if @path buf << "; expires=#{CGI::rfc1123_date(@expires)}" if @expires |