unshift_read_header: minor code style improvement

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-09-29 17:03:59 +02:00
parent 32163b8e11
commit 5339ae14d9

View File

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