Fixed problem with connection close

This commit is contained in:
yhirose 2018-05-14 00:05:14 -04:00
parent 312a8d7523
commit 7b9d752583
2 changed files with 46 additions and 30 deletions

View file

@ -393,6 +393,7 @@ TEST_F(ServerTest, GetMethod200)
EXPECT_EQ("HTTP/1.1", res->version);
EXPECT_EQ(200, res->status);
EXPECT_EQ("text/plain", res->get_header_value("Content-Type"));
EXPECT_EQ("close", res->get_header_value("Connection"));
EXPECT_EQ("Hello World!", res->body);
}