mirror of
git://git.proxmox.com/git/pve-http-server.git
synced 2025-08-02 16:21:56 +03:00
multipart upload: code cleanup/reuse
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -1227,9 +1227,7 @@ sub file_upload_multipart {
|
||||
die "wrong field name '$2' for file upload, expected 'filename'" if $2 ne "filename";
|
||||
$rstate->{phase} = 2;
|
||||
$rstate->{params}->{filename} = trim($3);
|
||||
|
||||
# remove any remaining multipart "headers" like Content-Type
|
||||
$hdl->{rbuf} =~ s/^.*?${newline_re}{2}//s
|
||||
$remove_until_data->($hdl); # any remaining multipart "headers" like Content-Type
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user