mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-06-30 21:12:31 +00:00
Don't override explicit $nocomp with default
By making compression configurable the $nocomp flag in response got set to the configured (or default) setting, irrespective of the explicitly passed value to response. This broke (e.g.) noVNC connections Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
23dfd1b7c9
commit
404175ada2
@ -184,7 +184,7 @@ sub response {
|
|||||||
$reqstate->{hdl}->timeout_reset();
|
$reqstate->{hdl}->timeout_reset();
|
||||||
$reqstate->{hdl}->timeout($self->{timeout});
|
$reqstate->{hdl}->timeout($self->{timeout});
|
||||||
|
|
||||||
$nocomp = !$self->{compression};
|
$nocomp //= !$self->{compression};
|
||||||
$nocomp = 1 if !$reqstate->{accept_gzip};
|
$nocomp = 1 if !$reqstate->{accept_gzip};
|
||||||
|
|
||||||
my $code = $resp->code;
|
my $code = $resp->code;
|
||||||
|
Loading…
Reference in New Issue
Block a user