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:
Stoiko Ivanov 2019-02-21 10:35:11 +01:00 committed by Thomas Lamprecht
parent 23dfd1b7c9
commit 404175ada2

View File

@ -184,7 +184,7 @@ sub response {
$reqstate->{hdl}->timeout_reset();
$reqstate->{hdl}->timeout($self->{timeout});
$nocomp = !$self->{compression};
$nocomp //= !$self->{compression};
$nocomp = 1 if !$reqstate->{accept_gzip};
my $code = $resp->code;