httpclient: fix parsing of IPv6 URLs (#662)

git-svn-id: http://svn.luci.subsignal.org/luci/trunk@9953 ab181a69-ba2e-0410-a84d-ff88ab4c47bc