Get rid of error with frozen string literal

[Bug #14194]
This commit is contained in:
MSP-Greg (Greg L) 2019-06-23 07:33:15 +09:00 committed by Nobuyoshi Nakada
parent aa2f505825
commit 2ad7a7f801
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -355,7 +355,7 @@ class CGIMultipartTest < Test::Unit::TestCase
require 'stringio' require 'stringio'
ENV['REQUEST_METHOD'] = 'POST' ENV['REQUEST_METHOD'] = 'POST'
ENV['CONTENT_TYPE'] = 'multipart/form-data; boundary=foobar1234' ENV['CONTENT_TYPE'] = 'multipart/form-data; boundary=foobar1234'
body = <<-BODY body = <<-BODY.gsub(/\n/, "\r\n")
--foobar1234 --foobar1234
Content-Disposition: form-data: name=\"name1\" Content-Disposition: form-data: name=\"name1\"
@ -370,7 +370,6 @@ Content-Type: text/html
--foobar1234-- --foobar1234--
BODY BODY
body.gsub!(/\n/, "\r\n")
ENV['CONTENT_LENGTH'] = body.size.to_s ENV['CONTENT_LENGTH'] = body.size.to_s
$stdin = StringIO.new(body) $stdin = StringIO.new(body)
CGI.new CGI.new