]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
HTTP unit-test: reset test parser if protocol has changed.
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 Nov 2009 11:25:58 +0000 (00:25 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 Nov 2009 11:25:58 +0000 (00:25 +1300)
src/tests/testHttpReply.cc

index 55a0472ad8235666a25065314f3d0bb8b80a8cb6..b00cdb4d3238ffa8b0823edb48581599722eee4a 100644 (file)
@@ -128,6 +128,8 @@ testHttpReply::testSanityCheckFirstLine()
     CPPUNIT_ASSERT(engine.sanityCheckStartLine(&input, hdr_len, &error) );
     CPPUNIT_ASSERT_EQUAL(error, HTTP_STATUS_NONE);
     input.reset();
+    engine.reset();
+    engine.protoPrefix="HTTP/";
     error = HTTP_STATUS_NONE;
 
     input.append("HTTP/1.1 200 \n\n", 15); /* real case seen */