parse_remote_port: ignore colons without port number
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Sep 2010 17:51:30 +0000 (19:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Sep 2010 17:51:30 +0000 (19:51 +0200)
commit8665d4e593c853dbcc83a0c6ba92b77d9e5bcd7e
tree74abfa7385a8ad8304a679d2a20220b528a77fe4
parent0e36bb71f2cee03ac5c63808acfdec4f7fe46768
parse_remote_port: ignore colons without port number

Obviously, browsers ignore a colon without a following port number. Both
Firefox and Chrome just removes the colon for such URLs. This change
does not remove the colon for URLs sent over a HTTP proxy, so we should
consider doing that change as well.

Reported by: github user 'kreshano'
lib/url.c