]> git.proxmox.com Git - pve-http-server.git/commitdiff
avoid warning if request params do not exists
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Jan 2022 12:09:11 +0000 (13:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Jan 2022 12:10:17 +0000 (13:10 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/APIServer/AnyEvent.pm

index f0305b3b9caea3aa93c3023022c23326439f0c47..b0b48667ccc6734370bd2221a9a97999e5136eb0 100644 (file)
@@ -880,7 +880,7 @@ sub handle_api2_request {
            $params = extract_params($r, $method);
        }
 
-       delete $params->{_dc}; # remove disable cache parameter
+       delete $params->{_dc} if $params; # remove disable cache parameter
 
        my $clientip = $reqstate->{peer_host};