This repository was archived by the owner on Nov 6, 2022. It is now read-only.
This repository was archived by the owner on Nov 6, 2022. It is now read-only.
Handle URLs with a colon after host but no port #501
Open
Description
Hello!
According to this issue on libgit2,
RFC 3986 says:
URI producers and normalizers should omit the port component and its
":" delimiter if port is empty or if its value would be the same as
that of the scheme's default.
They are patching http-parser in order to support it. A similar patch (deleting case s_http_host_port_start:
around line 2394) works fine also on latest http-parser release (v2.9.3), but a test is broken
*** http_parser_parse_url("http://hostname:/") "proxy empty port" test failed, unexpected rv 0 ***
Merging something similar on the main repo would prevent maintainers from varios distros to apply the patch by themeselves.
Can something similar be merged here?
Thanks,
Nicolò
Metadata
Metadata
Assignees
Labels
No labels