diff --git a/DEPENDENCIES b/DEPENDENCIES index 0e1f139..f3ce473 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -1,6 +1,6 @@ vendorpull https://github.com/sourcemeta/vendorpull dea311b5bfb53b6926a4140267959ae334d3ecf4 noa https://github.com/sourcemeta/noa 924f5cc8549af7f12227869dcbab4259029ac650 -jsontoolkit https://github.com/sourcemeta/jsontoolkit 69d5a7a28717752f38b692c09974ce1f2f1867e9 +jsontoolkit https://github.com/sourcemeta/jsontoolkit 30bdbfd3dc94a3329e3c76224f360525c9645bc4 blaze https://github.com/sourcemeta/blaze bde17029b8fc8daf38a496d4d27354a4d24b3530 hydra https://github.com/sourcemeta/hydra 67472465715103167830bc00655dc015d9c10934 bootstrap https://github.com/twbs/bootstrap v5.3.3 diff --git a/vendor/jsontoolkit/src/uri/uri.cc b/vendor/jsontoolkit/src/uri/uri.cc index e069cd4..c34cdcb 100644 --- a/vendor/jsontoolkit/src/uri/uri.cc +++ b/vendor/jsontoolkit/src/uri/uri.cc @@ -514,6 +514,12 @@ auto URI::relative_to(const URI &base) -> URI & { } uriFreeUriMembersMmA(&result, nullptr); + + // TODO: Why do we even need to do this? + if (copy.data.starts_with('/')) { + copy.data.erase(0, 1); + } + copy.parse(); // `uriparser` has this weird thing where it will only look at scheme and