add https-via-http-proxy support