You've already forked cpp-httplib
Fixed build errors and adjusted a test case.
This commit is contained in:
12
test/test.cc
12
test/test.cc
@ -267,7 +267,17 @@ TEST_F(ServerTest, GetMethodDir)
|
||||
ASSERT_TRUE(res != nullptr);
|
||||
EXPECT_EQ(200, res->status);
|
||||
EXPECT_EQ("text/html", res->get_header_value("Content-Type"));
|
||||
EXPECT_EQ("index.html", res->body);
|
||||
|
||||
auto body = R"(<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/dir/test.html">Test</a>
|
||||
<a href="/hi">hi</a>
|
||||
</body>
|
||||
</html>
|
||||
)";
|
||||
EXPECT_EQ(body, res->body);
|
||||
}
|
||||
|
||||
TEST_F(ServerTest, GetMethodDirTest)
|
||||
|
Reference in New Issue
Block a user