mirror of
https://github.com/curl/curl.git
synced 2026-08-01 05:28:04 +03:00
ftpserver.pl: send 213 SIZE response without spurious newline
This commit is contained in:
parent
c2d973627b
commit
f0986c6e18
1 changed files with 1 additions and 0 deletions
|
|
@ -2258,6 +2258,7 @@ sub SIZE_ftp {
|
|||
my $size = $data[0];
|
||||
|
||||
if($size) {
|
||||
$size += 0; # make it a number
|
||||
if($size > -1) {
|
||||
sendcontrol "213 $size\r\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue