[pve-devel] [PATCH http-server 2/2] fix post if variable declaration

Dominik Csapak d.csapak at proxmox.com
Fri May 29 15:29:01 CEST 2020


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/APIServer/AnyEvent.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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"
-- 
2.20.1





More information about the pve-devel mailing list