From 8c2e83f98ec8ba9dd2e02f9579b6b2cdefc1b8af Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 14 Aug 2009 22:39:11 -0700 Subject: http: support for "Connection: keep-alive" ab still sends this with HTTP/1.0 requests, which is unfortunate, but synthetic benchmarks are good for marketing purposes! --- test/unit/test_http_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb index 6cef678..42aa1a3 100644 --- a/test/unit/test_http_parser.rb +++ b/test/unit/test_http_parser.rb @@ -79,7 +79,7 @@ class HttpParserTest < Test::Unit::TestCase req = {} tmp = "GET / HTTP/1.0\r\nConnection: keep-alive\r\n\r\n" assert_equal req.object_id, parser.headers(req, tmp).object_id - assert ! parser.keepalive? + assert parser.keepalive? end def test_parse_server_host_default_port -- cgit v1.2.3-24-ge0c7