avoid warning if request params do not exists

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-01-13 13:09:11 +01:00
parent 6277311e71
commit d9b3838f27

View 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};