diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-11 21:55:31 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-11 21:55:31 +0100 |
commit | 1bbdec69bef50208f77f0c4cbac7c6b56c35973f (patch) | |
tree | c3a8bdb20493ea00ae63f6518414847bd14cd947 /deps | |
parent | 938cbd03370f573f1525b2a266fa4f5dfd6bf659 (diff) | |
download | libgit2-1bbdec69bef50208f77f0c4cbac7c6b56c35973f.tar.gz |
http_parser: handle URLs with colon but no port
When the end of the host is reached, and we're at the colon separating
the host with the port (ie, there is no numeric port) then do not error.
This is allowed by RFC 3986.
Diffstat (limited to 'deps')
-rw-r--r-- | deps/http-parser/http_parser.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/deps/http-parser/http_parser.c b/deps/http-parser/http_parser.c index 27bdd2081..cc53a5215 100644 --- a/deps/http-parser/http_parser.c +++ b/deps/http-parser/http_parser.c @@ -2047,7 +2047,6 @@ http_parse_host(const char * buf, struct http_parser_url *u, int found_at) { case s_http_host_start: case s_http_host_v6_start: case s_http_host_v6: - case s_http_host_port_start: case s_http_userinfo: case s_http_userinfo_start: return 1; |