BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip()

If an IPv6 address is enclosed in square brackets [], trim them before
calling inet_pton().  This is to comply with RFC7239 6.1 and RFC3986 3.2.2.
1 file changed