Przeglądaj źródła

Run RequestWithoutContentLengthOrTransferEncoding on Windows too

The test was kept off Windows while reading the body of such a request
waited on the socket and could hang there. That wait was made
non-blocking soon after, and such a request no longer has its body
read at all, so nothing in it is specific to the platform any more.
yhirose 5 dni temu
rodzic
commit
64b5c68a46
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0 2
      test/test.cc

+ 0 - 2
test/test.cc

@@ -23052,7 +23052,6 @@ TEST(ServerRequestParsingTest, BytesAfterUnframedRequestAreNotItsBody) {
   EXPECT_EQ("HTTP/1.1 200 OK", resp.substr(0, resp.find("\r\n")));
   EXPECT_EQ("HTTP/1.1 200 OK", resp.substr(0, resp.find("\r\n")));
 }
 }
 
 
-#ifndef _WIN32
 TEST(ServerRequestParsingTest, RequestWithoutContentLengthOrTransferEncoding) {
 TEST(ServerRequestParsingTest, RequestWithoutContentLengthOrTransferEncoding) {
   Server svr;
   Server svr;
 
 
@@ -23122,7 +23121,6 @@ TEST(ServerRequestParsingTest, RequestWithoutContentLengthOrTransferEncoding) {
                            &resp));
                            &resp));
   EXPECT_TRUE(resp.find("HTTP/1.1 200 OK") == 0);
   EXPECT_TRUE(resp.find("HTTP/1.1 200 OK") == 0);
 }
 }
-#endif
 
 
 //==============================================================================
 //==============================================================================
 // open_stream() Tests
 // open_stream() Tests