forward Host header in proxy_request

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-04-02 12:22:03 +02:00 committed by Thomas Lamprecht
parent 8782148642
commit 090019fa13

View File

@ -555,6 +555,10 @@ sub proxy_request {
$headers->{'CSRFPreventionToken'} = $token if $token;
$headers->{'Accept-Encoding'} = 'gzip' if ($reqstate->{accept_gzip} && $self->{compression});
if (defined(my $host = $reqstate->{request}->header('Host'))) {
$headers->{Host} = $host;
}
my $content;
if ($method eq 'POST' || $method eq 'PUT') {