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 1dddddb commit 8e19741Copy full SHA for 8e19741
tests/test_url.py
@@ -876,6 +876,12 @@ def test_normalize_percent_encoding_in_paths(self):
876
"http://www.example.com/a%A3do?q=r%E9sum%E9",
877
)
878
879
+ url = "https://example.com/a%23b%2cc#bash"
880
+ canonical = canonicalize_url(url)
881
+ # %23 is not accidentally interpreted as a URL fragment separator
882
+ self.assertEqual(canonical, "https://example.com/a%23b,c")
883
+ self.assertEqual(canonical, canonicalize_url(canonical))
884
+
885
def test_normalize_percent_encoding_in_query_arguments(self):
886
self.assertEqual(
887
canonicalize_url("http://www.example.com/do?k=b%a3"),
0 commit comments