diff options
author | MSP-Greg (Greg L) <[email protected]> | 2019-06-23 07:33:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-06-23 07:36:26 +0900 |
commit | 2ad7a7f801c07f18150116b819530840eeefebf8 (patch) | |
tree | ca17b827ad77e2635a8ddd0f161cac43ba6322b3 /test/cgi | |
parent | aa2f505825a914d1c5480d4e92696a1fa1ad0887 (diff) |
Get rid of error with frozen string literal
[Bug #14194]
Diffstat (limited to 'test/cgi')
-rw-r--r-- | test/cgi/test_cgi_multipart.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb index d27b1cb8b6..5e8ec25390 100644 --- a/test/cgi/test_cgi_multipart.rb +++ b/test/cgi/test_cgi_multipart.rb @@ -355,7 +355,7 @@ class CGIMultipartTest < Test::Unit::TestCase require 'stringio' ENV['REQUEST_METHOD'] = 'POST' ENV['CONTENT_TYPE'] = 'multipart/form-data; boundary=foobar1234' - body = <<-BODY + body = <<-BODY.gsub(/\n/, "\r\n") --foobar1234 Content-Disposition: form-data: name=\"name1\" @@ -370,7 +370,6 @@ Content-Type: text/html --foobar1234-- BODY - body.gsub!(/\n/, "\r\n") ENV['CONTENT_LENGTH'] = body.size.to_s $stdin = StringIO.new(body) CGI.new |