mirror of
https://github.com/curl/curl.git
synced 2025-09-14 08:02:44 +03:00
support <size>-1</size> to completely disable the SIZE command
This commit is contained in:
parent
9876ed09fe
commit
de96719a45
|
@ -175,8 +175,14 @@ sub SIZE_command {
|
||||||
my $size = $data[0];
|
my $size = $data[0];
|
||||||
|
|
||||||
if($size) {
|
if($size) {
|
||||||
print "213 $size\r\n";
|
if($size > -1) {
|
||||||
logmsg "SIZE $testno returned $size\n";
|
print "213 $size\r\n";
|
||||||
|
logmsg "SIZE $testno returned $size\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print "550 $testno: No such file or directory.\r\n";
|
||||||
|
logmsg "SIZE $testno: no such file\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$size=0;
|
$size=0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user