]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 21 Sep 2013 12:33:29 +0000 (00:33 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Sep 2013 12:33:29 +0000 (00:33 +1200)
src/tests/testHttpReply.cc

index 2510b02f1b34bcb5943c1ecb546b94dc911ee1b4..04aa5ab9a84da4a74b90e64e489fe62083f3f9c3 100644 (file)
@@ -188,7 +188,7 @@ testHttpReply::testSanityCheckFirstLine()
     error = Http::scNone;
 
     // status line with nul-byte
-    input.append("HTTP/1.1\0200 Okay\n\n", 19); /* real case seen */
+    input.append("HTTP/1.1" "\0" "200 Okay\n\n", 19); /* real case seen */
     hdr_len = headersEnd(input.content(),input.contentSize());
     CPPUNIT_ASSERT(!engine.sanityCheckStartLine(&input, hdr_len, &error) );
     CPPUNIT_ASSERT_EQUAL(error, Http::scInvalidHeader);