Skip to content

Commit 1bbdec6

Browse files
committed
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.
1 parent 938cbd0 commit 1bbdec6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

deps/http-parser/http_parser.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,6 @@ http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
20472047
case s_http_host_start:
20482048
case s_http_host_v6_start:
20492049
case s_http_host_v6:
2050-
case s_http_host_port_start:
20512050
case s_http_userinfo:
20522051
case s_http_userinfo_start:
20532052
return 1;

0 commit comments

Comments
 (0)