1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

support <size>-1</size> to completely disable the SIZE command

This commit is contained in:
Daniel Stenberg 2003-02-26 17:05:36 +00:00
parent 9876ed09fe
commit de96719a45

View File

@ -175,9 +175,15 @@ sub SIZE_command {
my $size = $data[0]; my $size = $data[0];
if($size) { if($size) {
if($size > -1) {
print "213 $size\r\n"; print "213 $size\r\n";
logmsg "SIZE $testno returned $size\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;
@data = getpart("reply", "data"); @data = getpart("reply", "data");