Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set HTTP Host to request-target when using proxy
To make the Host field carry the request-target it is enough to set the Host information before changing the connection destination. Many proxies rely on the Host field-value to route requests in a violation of RFC7230 section 5.4. https://tools.ietf.org/html/rfc7230#section-5.4 A request with the Host field set to the proxy hostname and port in place of the request-target produces error responses and otherwise confuses such misconfigured middleboxes.
- Loading branch information