zig icon indicating copy to clipboard operation
zig copied to clipboard

std.Uri: fix implementation of resolve with trailing slashes

Open truemedian opened this issue 1 year ago • 2 comments

This should solve #18291.

This required adapting resolvePosix for Uri into its own function. This also has the benefit of never returning relative paths, which used to be possible.

truemedian avatar Dec 18 '23 20:12 truemedian

I'm more inclined to re-implement resolvePosix in uri.zig to avoid process path multi times (don't mind me)

yzongyue avatar Dec 19 '23 08:12 yzongyue

removeDotSegments is the reimplementation of resolvePosix, but this time following the rules laid out in the RFC.

truemedian avatar Dec 19 '23 15:12 truemedian