gnetworkaddress: fix parsing of URIs with IPv6 literal and port
authorDan Winship <danw@gnome.org>
Mon, 19 Aug 2013 16:09:59 +0000 (12:09 -0400)
committerDan Winship <danw@gnome.org>
Mon, 19 Aug 2013 16:15:36 +0000 (12:15 -0400)
commite1f92431c1bc430362d27f9bce2f14bf8176aa5b
tree6db63ee5c2b96c58809d0d875116492796c1fcc4
parent635196b1ffc5e810431b5746d52138d2c3bcb1db
gnetworkaddress: fix parsing of URIs with IPv6 literal and port

Addresses like "http://[::1]:8080/" were being parsed as though they
did not include a port. Fix that, and add some more parsing tests.
gio/gnetworkaddress.c
gio/tests/network-address.c