diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-03 07:54:18 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-03 07:54:18 +0000 |
commit | 51eab3408f71ed62f5bb1b464e66f4b21da0403e (patch) | |
tree | c350862f9052d8ad431f61f9cb4b24e929d18b64 /test/webrick/test_httprequest.rb | |
parent | e71d325ee7fc191f0f34c428638b10ef2766cbb5 (diff) | |
download | ruby-51eab3408f71ed62f5bb1b464e66f4b21da0403e.tar.gz |
Revert r62966 and r62969
It breaks mswin's test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick/test_httprequest.rb')
-rw-r--r-- | test/webrick/test_httprequest.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/webrick/test_httprequest.rb b/test/webrick/test_httprequest.rb index 6b99e34569..855ff9d4a7 100644 --- a/test/webrick/test_httprequest.rb +++ b/test/webrick/test_httprequest.rb @@ -237,7 +237,6 @@ GET / def test_chunked crlf = "\x0d\x0a" - expect = File.read(__FILE__).freeze msg = <<-_end_of_message_ POST /path HTTP/1.1 Host: test.ruby-lang.org:8080 @@ -254,14 +253,7 @@ GET / msg << "0" << crlf req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP) req.parse(StringIO.new(msg)) - assert_equal(expect, req.body) - - # chunked req.body_reader - req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP) - req.parse(StringIO.new(msg)) - dst = StringIO.new - IO.copy_stream(req.body_reader, dst) - assert_equal(expect, dst.string) + assert_equal(File.read(__FILE__), req.body) end def test_forwarded |