Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CONNECT with downstream HTTP proxy
This patch fixes and extends connectHTTP() implementation. We make separate CONNECT request to the downstream proxy to avoid copying everything we read from the wire. It may contain "per-proxy-hop" headers and other information we do not want to send as well as body. We send Proxy-Authorization header if UserInfo is provided. We do TLS handshake with HTTPS proxies. We fix the Content-Length -1 in CONNECT response issues. Fixes google#300
- Loading branch information