]> git.proxmox.com Git - pve-http-server.git/blobdiff - PVE/APIServer/AnyEvent.pm
Don't override explicit $nocomp with default
[pve-http-server.git] / PVE / APIServer / AnyEvent.pm
index 277a1ec34778c47eb519b87996cbf3fa2315b882..502b8245a9c7c4f4c2304637c3958c48b679c553 100755 (executable)
@@ -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;