Fix IPv6 incompatibility in HTTP code due to using raw IPv6 addresses in string format