Fix net.split_url

Resolves issue #2924
This commit is contained in:
Jeroen van Rijn
2023-11-09 16:56:54 +01:00
parent 4116d66c59
commit 761a079789
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -572,6 +572,11 @@ split_url_test :: proc(t: ^testing.T) {
{"a" = "", "b" = ""},
{"http://example.com/example?a&b"},
},
{
"https", "example.com", "/callback",
{"redirect" = "https://other.com/login"},
{"https://example.com/callback?redirect=https://other.com/login"},
},
}
for test in test_cases {