From 93e32638480f6eb630c2067f6609792de6a765b0 Mon Sep 17 00:00:00 2001 From: "Benjamin M. Schwartz" Date: Tue, 18 Apr 2017 20:26:53 +0000 Subject: [PATCH] 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. --- src/shrpx_https_upstream.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shrpx_https_upstream.cc b/src/shrpx_https_upstream.cc index b2b6120d..5d373dd3 100644 --- a/src/shrpx_https_upstream.cc +++ b/src/shrpx_https_upstream.cc @@ -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()) {