Revert "Accept HTTP/1.1 response in network tests"

Since we bypass the system’s proxy for localhost, no-one should modify our test server’s response.

This reverts commit c98bc92b5d.
This commit is contained in:
Allan Odgaard
2012-08-13 20:31:30 +02:00
parent f370ee13e4
commit 236c608e86

View File

@@ -84,8 +84,7 @@ public:
char fileContent[fileSize];
if(read(fd, fileContent, fileSize) == fileSize)
{
// GlimmerBlocker.org might cause a "HTTP/1.1" response
TS_ASSERT(strcmp(status.c_str(),"HTTP/1.0 200 OK")==0 || strcmp(status.c_str(),"HTTP/1.1 200 OK")==0);
TS_ASSERT_EQUALS(status, "HTTP/1.0 200 OK");
TS_ASSERT(headers.find("content-length") != headers.end());
TS_ASSERT_EQUALS(headers.find("content-length")->second, text::format("%zu", fileSize));
TS_ASSERT_EQUALS(body, std::string(fileContent, fileContent + fileSize));