followup: adapt coding style to surrounding

compression is set to true by default, and we only want to be able to
switch it off, not force it on.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-02-21 10:44:26 +01:00
parent 404175ada2
commit 025b303821

View File

@ -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 = 1 if !$self->{compression};
$nocomp = 1 if !$reqstate->{accept_gzip}; $nocomp = 1 if !$reqstate->{accept_gzip};
my $code = $resp->code; my $code = $resp->code;