mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-04-30 22:41:17 +00:00
unshift_read_header: minor code style improvement
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
32163b8e11
commit
5339ae14d9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user