summaryrefslogtreecommitdiff
path: root/test/cgi
diff options
context:
space:
mode:
authorMSP-Greg (Greg L) <Greg.mpls@gmail.com>2019-06-23 07:33:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-23 07:36:26 +0900
commit2ad7a7f801c07f18150116b819530840eeefebf8 (patch)
treeca17b827ad77e2635a8ddd0f161cac43ba6322b3 /test/cgi
parentaa2f505825a914d1c5480d4e92696a1fa1ad0887 (diff)
Get rid of error with frozen string literal
[Bug #14194]
Diffstat (limited to 'test/cgi')
-rw-r--r--test/cgi/test_cgi_multipart.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb
index d27b1cb..5e8ec25 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