]> git.proxmox.com Git - pve-http-server.git/commitdiff
followup: adapt coding style to surrounding
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Feb 2019 09:44:26 +0000 (10:44 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Feb 2019 09:44:28 +0000 (10:44 +0100)
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>
PVE/APIServer/AnyEvent.pm

index 502b8245a9c7c4f4c2304637c3958c48b679c553..468edb441ebebab0ed742b78c6733917857e3167 100755 (executable)
@@ -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;