]> git.proxmox.com Git - pve-http-server.git/commitdiff
fix post if variable declaration
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 29 May 2020 13:29:01 +0000 (15:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Jun 2020 07:07:29 +0000 (09:07 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/APIServer/AnyEvent.pm

index e5f2cb4d200dff06bd2d6ee925f0f488cc6b039f..efb81687f9b8b62a663875c7232f5ad7b584861a 100644 (file)
@@ -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"