1
0
mirror of synced 2025-04-21 22:25:55 +03:00

Fix problem caused by #1931.

This commit is contained in:
yhirose 2024-09-09 19:19:52 -04:00
parent 2d01e71286
commit 509f583dca

View File

@ -2920,7 +2920,7 @@ TEST_F(ServerTest, GetEmptyFile) {
auto res = cli_.Get("/empty_file"); auto res = cli_.Get("/empty_file");
ASSERT_TRUE(res); ASSERT_TRUE(res);
EXPECT_EQ(StatusCode::OK_200, res->status); EXPECT_EQ(StatusCode::OK_200, res->status);
EXPECT_EQ("text/plain", res->get_header_value("Content-Type")); EXPECT_EQ("application/octet-stream", res->get_header_value("Content-Type"));
EXPECT_EQ(0, std::stoi(res->get_header_value("Content-Length"))); EXPECT_EQ(0, std::stoi(res->get_header_value("Content-Length")));
EXPECT_EQ("", res->body); EXPECT_EQ("", res->body);
} }