Skip to content

Commit a165dca

Browse files
committed
Failing test case.
1 parent 7675115 commit a165dca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/webrick/test_httprequest.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,4 +532,11 @@ def test_eof_raised_when_line_is_nil
532532
req.parse(StringIO.new(""))
533533
}
534534
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
535542
end

0 commit comments

Comments
 (0)