Skip to content

Commit

Permalink
path setter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed May 16, 2024
1 parent 77dc0d0 commit 213b5aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/basic_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,14 @@ TYPED_TEST(basic_tests, nodejs_undici_2971) {
out->get_href(),
R"(https://non-ascii-location-header.sys.workers.dev/%EC%95%88%EB%85%95)");
SUCCEED();
}

TYPED_TEST(basic_tests, path_setter_bug) {
std::string_view base = "blob:/?";
auto base_url = ada::parse<ada::url_aggregator>(base);
ASSERT_TRUE(base_url);
ASSERT_TRUE(base_url->validate());
ASSERT_TRUE(base_url->set_pathname("//.."));
ASSERT_TRUE(base_url->validate());
SUCCEED();
}

0 comments on commit 213b5aa

Please sign in to comment.