diff options
author | Théophane Hufschmitt <theophane@hufschmitt.net> | 2022-04-07 21:09:39 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane@hufschmitt.net> | 2022-04-08 16:09:49 +0200 |
commit | f3d3587ab39130e8d87d290b8cedabb3e6e9d715 (patch) | |
tree | c4cd93ceffa59be8f95b6b2d9f6d8fe88f069d99 /src/libutil/tests/url.cc | |
parent | 8b1e328d5d0ae7d3a4a8f6012ec065b59674ed4a (diff) |
Allow empty path segments in urls
Valid per https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 (and
also somewhat frequently happening for local paths)
Diffstat (limited to 'src/libutil/tests/url.cc')
-rw-r--r-- | src/libutil/tests/url.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/tests/url.cc b/src/libutil/tests/url.cc index f20e2dc41..c3b233797 100644 --- a/src/libutil/tests/url.cc +++ b/src/libutil/tests/url.cc @@ -178,7 +178,7 @@ namespace nix { } TEST(parseURL, parseFileURLWithQueryAndFragment) { - auto s = "file:///none/of/your/business"; + auto s = "file:///none/of//your/business"; auto parsed = parseURL(s); ParsedURL expected { @@ -186,7 +186,7 @@ namespace nix { .base = "", .scheme = "file", .authority = "", - .path = "/none/of/your/business", + .path = "/none/of//your/business", .query = (StringMap) { }, .fragment = "", }; |