mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-23 11:54:42 +00:00
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.
This commit is contained in:
1 parent
1c91d54b7c
commit
64b5c68a46
1 file changed
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user