From d1cb4a5ba7d39af6c793d069903a3fe24dbaa8d3 Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 30 Oct 2009 13:09:03 +0000 Subject: * lib/net/http.rb (Net::HTTPResponse#each_response_header): accept multiline message header of HTTP response. see #1796. cf. RFC 2616 '4.2 Message Header'. * test/net/http/test_httpresponse.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/http/test_httpresponse.rb | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 test/net/http/test_httpresponse.rb (limited to 'test') diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb new file mode 100644 index 0000000000..ab6fdd0ea9 --- /dev/null +++ b/test/net/http/test_httpresponse.rb @@ -0,0 +1,40 @@ +require 'net/http' +require 'test/unit' +require 'stringio' + +class HTTPResponseTest < Test::Unit::TestCase + def test_singleline_header + io = dummy_io(<