1
0
mirror of synced 2025-04-23 09:45:32 +03:00

Fixed unit test error on Windows

This commit is contained in:
yhirose 2019-08-03 20:43:27 -04:00
parent f4aaba6362
commit 531f6ab84d

View File

@ -792,15 +792,7 @@ TEST_F(ServerTest, GetMethodDir) {
EXPECT_EQ(200, res->status);
EXPECT_EQ("text/html", res->get_header_value("Content-Type"));
auto body = R"(<html>
<head>
</head>
<body>
<a href="/dir/test.html">Test</a>
<a href="/hi">hi</a>
</body>
</html>
)";
auto body = "<html>\r\n<head>\r\n</head>\r\n<body>\r\n <a href=\"/dir/test.html\">Test</a>\r\n <a href=\"/hi\">hi</a>\r\n</body>\r\n</html>\r\n";
EXPECT_EQ(body, res->body);
}