mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Added one more case to MountTest.Redicect unit test.
This commit is contained in:
parent
953e4f3841
commit
485f8f2411
1 changed files with 5 additions and 0 deletions
|
@ -5098,6 +5098,11 @@ TEST(MountTest, Redicect) {
|
||||||
res = cli.Get("/file/");
|
res = cli.Get("/file/");
|
||||||
ASSERT_TRUE(res);
|
ASSERT_TRUE(res);
|
||||||
EXPECT_EQ(StatusCode::NotFound_404, res->status);
|
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
|
#ifndef CPPHTTPLIB_NO_EXCEPTIONS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue