mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-02 16:20:13 +00:00
forward Host header in proxy_request
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
8782148642
commit
090019fa13
@ -555,6 +555,10 @@ sub proxy_request {
|
|||||||
$headers->{'CSRFPreventionToken'} = $token if $token;
|
$headers->{'CSRFPreventionToken'} = $token if $token;
|
||||||
$headers->{'Accept-Encoding'} = 'gzip' if ($reqstate->{accept_gzip} && $self->{compression});
|
$headers->{'Accept-Encoding'} = 'gzip' if ($reqstate->{accept_gzip} && $self->{compression});
|
||||||
|
|
||||||
|
if (defined(my $host = $reqstate->{request}->header('Host'))) {
|
||||||
|
$headers->{Host} = $host;
|
||||||
|
}
|
||||||
|
|
||||||
my $content;
|
my $content;
|
||||||
|
|
||||||
if ($method eq 'POST' || $method eq 'PUT') {
|
if ($method eq 'POST' || $method eq 'PUT') {
|
||||||
|
Loading…
Reference in New Issue
Block a user