1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Added a test case for #396.

This commit is contained in:
yhirose 2020-05-04 21:26:14 -04:00
parent 3895210f19
commit f5b806d995

View File

@ -2386,6 +2386,11 @@ TEST(ServerRequestParsingTest, ChunkLengthTooHighInRequest) {
EXPECT_EQ("HTTP/1.1 400 Bad Request", out.substr(0, 24));
}
TEST(ServerRequestParsingTest, InvalidHeaderTextWithExtraCR) {
test_raw_request("GET /hi HTTP/1.1\r\n"
"Content-Type: text/plain\r\n\r");
}
TEST(ServerStopTest, StopServerWithChunkedTransmission) {
Server svr;