]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy: Let fixup hooks know about the Host header (and eventually overwrite it).
authorYann Ylavic <ylavic@apache.org>
Wed, 1 Jun 2022 09:56:43 +0000 (09:56 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 1 Jun 2022 09:56:43 +0000 (09:56 +0000)
commit5c3c5f2707e749a3f1a1218d4d587171f93ff904
tree82ddb7f22543c59b8c4f198410ba803593cf80b3
parent5af4eef2fd20507611db42121b5a4e22bdf97528
mod_proxy: Let fixup hooks know about the Host header (and eventually overwrite it).

If proxy_run_fixups() sets a Host header there will be two ones sent to the
origin server.

Instead, let the hooks know about the Host by setting it in the r->headers_in
passed to proxy_run_fixups(), and use the actual value afterwards.
Note: if proxy_run_fixups() unsets the Host we'll keep ours.

Suggested by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901485 13f79535-47bb-0310-9956-ffa450edef68
modules/proxy/proxy_util.c