1
0
mirror of synced 2025-04-19 00:24:02 +03:00

Added one more case to MountTest.Redicect unit test.

This commit is contained in:
yhirose 2024-09-05 17:49:12 -04:00
parent 953e4f3841
commit 485f8f2411

View File

@ -5098,6 +5098,11 @@ TEST(MountTest, Redicect) {
res = cli.Get("/file/");
ASSERT_TRUE(res);
EXPECT_EQ(StatusCode::NotFound_404, res->status);
cli.set_follow_location(true);
res = cli.Get("/dir");
ASSERT_TRUE(res);
EXPECT_EQ(StatusCode::OK_200, res->status);
}
#ifndef CPPHTTPLIB_NO_EXCEPTIONS