We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e7074 commit fc23bb0Copy full SHA for fc23bb0
tests/basic_tests.cpp
@@ -417,3 +417,14 @@ TYPED_TEST(basic_tests, nodejs_51619) {
417
ASSERT_FALSE(out);
418
SUCCEED();
419
}
420
+
421
+// https://github.com/nodejs/undici/pull/2971
422
+TYPED_TEST(basic_tests, nodejs_undici_2971) {
423
+ std::string_view base = "https://non-ascii-location-header.sys.workers.dev/redirect";
424
+ auto base_url = ada::parse<TypeParam>(base);
425
+ ASSERT_TRUE(base_url);
426
+ auto out = ada::parse<TypeParam>("/\xec\x95\x88\xeb\x85\x95", &*base_url);
427
+ ASSERT_TRUE(out);
428
+ ASSERT_EQ(out->get_href(), R"(https://non-ascii-location-header.sys.workers.dev/%EC%95%88%EB%85%95)");
429
+ SUCCEED();
430
+}
0 commit comments