]> git.proxmox.com Git - pve-http-server.git/blobdiff - PVE/APIServer/AnyEvent.pm
fix post if variable declaration
[pve-http-server.git] / 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"