RFC 3986 explicitly allows empty path segments in URLs, making double slashes (`//`) syntactically valid and semantically meaningful. Collapsing `//` to `/` is not legitimate normalization according to RFC 3986 or RFC 9110 (HTTP), as it alters the segment sequence and changes the resource identifier. The only permitted path
•9m read time• From runxiyu.org
Table of contents
The URI syntax permits empty path segmentsHTTP uses RFC 3986 path grammarURL normalization rules do not include collapsing //HTTP scheme-based normalization still does not collapse //ConclusionWhy would you want to do that?Wait, are there any implementations that wrongly collapse double-slashes?Sort: