diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-26 06:23:28 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-26 07:19:18 +0000 |
commit | 87b1cf4eef3d717d345d730f28ddaad319f2fb2f (patch) | |
tree | b5fb29340a1d4123fa197fcf09e2db2033935fa4 /test | |
parent | c348223a045abb295b8c9d7dbf189264bc3a17c3 (diff) | |
download | unicorn-87b1cf4eef3d717d345d730f28ddaad319f2fb2f.tar.gz |
We need to preserve our internal flags and only clear them on HttpParser#parse. This allows the async concurrency models in Rainbows! to work properly.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_http_parser_ng.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/test_http_parser_ng.rb b/test/unit/test_http_parser_ng.rb index 8bcb724..c5d2460 100644 --- a/test/unit/test_http_parser_ng.rb +++ b/test/unit/test_http_parser_ng.rb @@ -598,6 +598,8 @@ class HttpParserNgTest < Test::Unit::TestCase assert_equal req2, @parser.buf assert ! @parser.env.empty? assert @parser.next? + assert @parser.keepalive? + assert @parser.headers? assert_equal expect, @parser.env env2 = @parser.parse.dup host.replace "www.example.com" |