mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-07-05 17:40:10 +00:00
multipart upload: drop unused variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0fbcbc2628
commit
42ec24969f
@ -1183,7 +1183,6 @@ sub file_upload_multipart {
|
|||||||
my ($self, $reqstate, $auth, $method, $path, $rstate) = @_;
|
my ($self, $reqstate, $auth, $method, $path, $rstate) = @_;
|
||||||
|
|
||||||
my $trim = sub {
|
my $trim = sub {
|
||||||
my ($string) = @_;
|
|
||||||
$_[0] =~ /\s*(\S+)/;
|
$_[0] =~ /\s*(\S+)/;
|
||||||
return $1;
|
return $1;
|
||||||
};
|
};
|
||||||
@ -1249,7 +1248,7 @@ sub file_upload_multipart {
|
|||||||
# Phase 2 - dump content into file
|
# Phase 2 - dump content into file
|
||||||
if ($rstate->{phase} == 2) {
|
if ($rstate->{phase} == 2) {
|
||||||
if ($hdl->{rbuf} =~ s/^(.*?)${newline}?+${closeDelimiter}.*$//s) {
|
if ($hdl->{rbuf} =~ s/^(.*?)${newline}?+${closeDelimiter}.*$//s) {
|
||||||
my ($rest, $eof) = ($1, $3);
|
my $rest = $1;
|
||||||
my $len = length($rest);
|
my $len = length($rest);
|
||||||
die "write to temporary file failed - $!"
|
die "write to temporary file failed - $!"
|
||||||
if syswrite($rstate->{outfh}, $rest) != $len;
|
if syswrite($rstate->{outfh}, $rest) != $len;
|
||||||
|
Loading…
Reference in New Issue
Block a user