mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-01 04:14:36 +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 $ctype = $r->header('Content-Type');
|
||||||
my ($ct, $boundary);
|
my ($ct, $boundary) = $ctype ? parse_content_type($ctype) : ();
|
||||||
($ct, $boundary)= parse_content_type($ctype) if $ctype;
|
|
||||||
|
|
||||||
if ($auth->{isUpload} && !$self->{trusted_env}) {
|
if ($auth->{isUpload} && !$self->{trusted_env}) {
|
||||||
die "upload 'Content-Type '$ctype' not implemented\n"
|
die "upload 'Content-Type '$ctype' not implemented\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user