From: Alex Rousskov Date: Sun, 29 Sep 2013 17:54:51 +0000 (-0600) Subject: Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8 X-Git-Tag: SQUID_3_3_10~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ea358ace2d1c3b2e069c4b470a1e1484b9f474;p=thirdparty%2Fsquid.git Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8 --- diff --git a/src/tests/testHttpReply.cc b/src/tests/testHttpReply.cc index db529c155b..6ac995704e 100644 --- a/src/tests/testHttpReply.cc +++ b/src/tests/testHttpReply.cc @@ -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);