Project

General

Profile

Bug #9986 » webrick_transfer_encoding_chunked_content_length_failing_test.patch

Failing test for issue 9986 - lengarvey (Leonard Garvey), 07/01/2014 01:27 PM

View differences:

test/webrick/test_httpresponse.rb
assert_equal 0, logger.messages.length
end
def test_200_chunked_does_not_set_content_length
res.body = 'hello'
res.status = 200
res.chunked = false
res["Transfer-Encoding"] = 'chunked'
res.setup_header
assert_nil res.header.fetch('content-length', nil)
end
def test_send_body_io
IO.pipe {|body_r, body_w|
body_w.write 'hello'
(2-2/3)