Patch by MSP-Greg 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 @@ def test_cgi_multipart_without_tempfile 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 @@ def test_cgi_multipart_without_tempfile --foobar1234-- BODY - body.gsub!(/\n/, "\r\n") ENV['CONTENT_LENGTH'] = body.size.to_s $stdin = StringIO.new(body) CGI.new