diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-04-25 23:44:06 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:35 -0400 |
commit | 6fd3fe2b639915a88c0df57f858641ef9eef8335 (patch) | |
tree | 53b0009cf85a0f40d4da5c8eb8c3a36bbb421d59 | |
parent | a5c170e3419869318d07c9f389090297ea3a101f (diff) | |
download | lighttpd-git-6fd3fe2b639915a88c0df57f858641ef9eef8335.tar.gz |
[mod_proxy] match "map-host-response" "-" w/ Host
match "map-host-response" with authority provided in (request) Host
for "-" in response map and when no other "map-host-request" mapped
request to a different authority. This is a bit friendlier for use
with bidirectional https-remap.
-rw-r--r-- | src/mod_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c index e3387e2c..17be272b 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -402,7 +402,7 @@ static const buffer * http_header_remap_host_match (buffer *b, size_t off, http_ * (If no Host in client request, then matching against empty * string will probably not match, and no remap will be * performed) */ - k = is_req + k = is_req || NULL == remap_hdrs->forwarded_host ? remap_hdrs->http_host : remap_hdrs->forwarded_host; if (NULL == k) continue; |