]> 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>
Sun, 29 Sep 2013 17:54:51 +0000 (11:54 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 29 Sep 2013 17:54:51 +0000 (11:54 -0600)
src/tests/testHttpReply.cc

index db529c155b36c74b94f4c8b2ece12f5c036dde94..6ac995704ebb0bd839781b091d7244bc515926ff 100644 (file)
@@ -194,7 +194,7 @@ testHttpReply::testSanityCheckFirstLine()
     error = HTTP_STATUS_NONE;
 
     // 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_INVALID_HEADER);