mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
Fix SocketStream.wait_writable_INET test
This commit is contained in:
1 parent
f29bb15f9d
commit
f6aec98145
1 file changed
+1
-4
+1
-4
@@ -4802,12 +4802,9 @@ TEST_F(ServerTest, HeaderCountSecurityTest) {
|
||||
if (res) {
|
||||
// If we get a response, it should be 400 Bad Request
|
||||
EXPECT_EQ(StatusCode::BadRequest_400, res->status);
|
||||
} else {
|
||||
// Request failed, which is the expected behavior for DoS protection
|
||||
EXPECT_FALSE(res);
|
||||
EXPECT_EQ("close", res->get_header_value("Connection"));
|
||||
}
|
||||
|
||||
EXPECT_EQ("close", res->get_header_value("Connection"));
|
||||
EXPECT_FALSE(cli_.is_socket_open());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user