We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7675115 commit a165dcaCopy full SHA for a165dca
test/webrick/test_httprequest.rb
@@ -532,4 +532,11 @@ def test_eof_raised_when_line_is_nil
532
req.parse(StringIO.new(""))
533
}
534
end
535
+
536
+ def test_cookie_join
537
+ req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP)
538
+ req.parse(StringIO.new("GET / HTTP/1.1\r\ncookie: a=1\r\ncookie: b=2\r\n\r\n"))
539
+ assert_equal 2, req.cookies.length
540
+ assert_equal 'a=1; b=2', req['cookie']
541
+ end
542
0 commit comments