From: Dominik Csapak Date: Fri, 29 May 2020 13:29:01 +0000 (+0200) Subject: fix post if variable declaration X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=abef3172564e7a5c30fbbe52a32e9dff5b382236;p=pve-http-server.git fix post if variable declaration Signed-off-by: Dominik Csapak --- diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm index e5f2cb4..efb8168 100644 --- a/PVE/APIServer/AnyEvent.pm +++ b/PVE/APIServer/AnyEvent.pm @@ -1322,7 +1322,8 @@ sub unshift_read_header { } my $ctype = $r->header('Content-Type'); - my ($ct, $boundary) = parse_content_type($ctype) if $ctype; + my ($ct, $boundary); + ($ct, $boundary)= parse_content_type($ctype) if $ctype; if ($auth->{isUpload} && !$self->{trusted_env}) { die "upload 'Content-Type '$ctype' not implemented\n"