Testing of MIME-type of HTTP 500 response

This commit is contained in:
Veloman Yunkan 2023-12-06 14:42:31 +04:00
parent c57b8a0c7c
commit 797f4c432c
1 changed files with 1 additions and 0 deletions

View File

@ -1054,6 +1054,7 @@ TEST_F(ServerTest, 500)
const auto r = zfs1_->GET("/ROOT%23%3F/content/poor/A/redirect_loop.html");
EXPECT_EQ(r->status, 500);
EXPECT_EQ(r->body, expectedBody);
EXPECT_EQ(r->get_header_value("Content-Type"), "text/html;charset=utf-8");
}
}