From 2ad7a7f801c07f18150116b819530840eeefebf8 Mon Sep 17 00:00:00 2001 From: "MSP-Greg (Greg L)" Date: Sun, 23 Jun 2019 07:33:15 +0900 Subject: Get rid of error with frozen string literal [Bug #14194] --- test/cgi/test_cgi_multipart.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/cgi') 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 -- cgit v1.2.3