Maintain full HTTP/1.1 support in forward proxy mode

Currently, HTTP/1.1 requests are only supported in
forward proxy mode if they contain an absolute URI path.
With this change, HTTP/1.1 requests with a local path
are treated like an equivalent HTTP/2 request, i.e. relying
on the Host header to indicate the destination domain.
This commit is contained in:
Benjamin M. Schwartz 2017-04-18 20:26:53 +00:00
parent e06ed85747
commit 93e3263848
1 changed files with 1 additions and 0 deletions

View File

@ -383,6 +383,7 @@ int htp_hdrs_completecb(http_parser *htp) {
if (host) {
req.authority = host->value;
req.no_authority = false;
}
if (handler->get_ssl()) {