From 025b3038215db2d3a8165eee7816dd3b96b85993 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 21 Feb 2019 10:44:26 +0100 Subject: [PATCH] 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 --- PVE/APIServer/AnyEvent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2