From: Thomas Lamprecht Date: Thu, 29 Sep 2022 15:03:59 +0000 (+0200) Subject: unshift_read_header: minor code style improvement X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5339ae14d981f10cbbd5ca635beae4c8f2ebf422;p=pve-http-server.git unshift_read_header: minor code style improvement Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm index 71c5282..4296ded 100644 --- a/src/PVE/APIServer/AnyEvent.pm +++ b/src/PVE/APIServer/AnyEvent.pm @@ -1463,8 +1463,7 @@ sub unshift_read_header { } my $ctype = $r->header('Content-Type'); - my ($ct, $boundary); - ($ct, $boundary)= parse_content_type($ctype) if $ctype; + my ($ct, $boundary) = $ctype ? parse_content_type($ctype) : (); if ($auth->{isUpload} && !$self->{trusted_env}) { die "upload 'Content-Type '$ctype' not implemented\n"