Skip to content

Commit

Permalink
Added one more case to MountTest.Redicect unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Sep 5, 2024
1 parent 953e4f3 commit 485f8f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 485f8f2

Please sign in to comment.