mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-22 11:46:13 +00:00
Fix #2424
This commit is contained in:
1 parent
cb3fce964d
commit
b045ee7f6b
1 file changed
+2
-2
+2
-2
@@ -3390,7 +3390,7 @@ protected:
|
|||||||
})
|
})
|
||||||
.Get("/slow",
|
.Get("/slow",
|
||||||
[&](const Request & /*req*/, Response &res) {
|
[&](const Request & /*req*/, Response &res) {
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(2));
|
std::this_thread::sleep_for(std::chrono::seconds(4));
|
||||||
res.set_content("slow", "text/plain");
|
res.set_content("slow", "text/plain");
|
||||||
})
|
})
|
||||||
#if 0
|
#if 0
|
||||||
@@ -6909,7 +6909,7 @@ TEST_F(ServerTest, SendLargeBodyAfterRequestLineError) {
|
|||||||
EXPECT_EQ(StatusCode::UriTooLong_414, res.status);
|
EXPECT_EQ(StatusCode::UriTooLong_414, res.status);
|
||||||
EXPECT_EQ("close", res.get_header_value("Connection"));
|
EXPECT_EQ("close", res.get_header_value("Connection"));
|
||||||
EXPECT_FALSE(cli_.is_socket_open());
|
EXPECT_FALSE(cli_.is_socket_open());
|
||||||
EXPECT_LE(elapsed, 200);
|
EXPECT_LE(elapsed, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user