From 64b5c68a4624d172508c783d00b3f514a7d95a14 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 22 Oct 2026 09:32:29 -0400 Subject: [PATCH] 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. --- test/test.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/test.cc b/test/test.cc index 40ce3ad0..f792f17f 100644 --- a/test/test.cc +++ b/test/test.cc @@ -23052,7 +23052,6 @@ TEST(ServerRequestParsingTest, BytesAfterUnframedRequestAreNotItsBody) { EXPECT_EQ("HTTP/1.1 200 OK", resp.substr(0, resp.find("\r\n"))); } -#ifndef _WIN32 TEST(ServerRequestParsingTest, RequestWithoutContentLengthOrTransferEncoding) { Server svr; @@ -23122,7 +23121,6 @@ TEST(ServerRequestParsingTest, RequestWithoutContentLengthOrTransferEncoding) { &resp)); EXPECT_TRUE(resp.find("HTTP/1.1 200 OK") == 0); } -#endif //============================================================================== // open_stream() Tests