From: Thomas Lamprecht Date: Thu, 21 Feb 2019 09:44:26 +0000 (+0100) Subject: followup: adapt coding style to surrounding X-Git-Url: https://git.proxmox.com/?p=pve-http-server.git;a=commitdiff_plain;h=025b3038215db2d3a8165eee7816dd3b96b85993 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 --- diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm index 502b824..468edb4 100755 --- a/PVE/APIServer/AnyEvent.pm +++ b/PVE/APIServer/AnyEvent.pm @@ -184,7 +184,7 @@ sub response { $reqstate->{hdl}->timeout_reset(); $reqstate->{hdl}->timeout($self->{timeout}); - $nocomp //= !$self->{compression}; + $nocomp = 1 if !$self->{compression}; $nocomp = 1 if !$reqstate->{accept_gzip}; my $code = $resp->code;