CONNECT: send correct Host: with IPv6 numerical address
authorDaniel Stenberg <daniel@haxx.se>
Tue, 31 Jan 2012 21:52:10 +0000 (22:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 31 Jan 2012 21:52:10 +0000 (22:52 +0100)
commit466150bc64de0caef08f22cc8a88f7922483a639
tree70fa8bb1a6a7dd72f95366d65dcfd9ef94ab02ee
parentf710aa40b326377b6834b59cc937bf50e929aba7
CONNECT: send correct Host: with IPv6 numerical address

When the target host was given as a IPv6 numerical address, it was not
properly put within square brackets for the Host: header in the CONNECT
request. The "normal" request did fine.

Reported by: "zooloo"
Bug: http://curl.haxx.se/bug/view.cgi?id=3482093
lib/http_proxy.c