ftp: avoid SIZE when asking for a TYPE A file

... as we ignore it anyway because servers don't report the correct size
and proftpd even blatantly returns a 550.

Updates a set of tests accordingly.

Reported-by: awesomenode on github
Fixes #6564
Closes #6565
This commit is contained in:
Daniel Stenberg 2021-02-04 13:05:03 +01:00
parent 5f08a5acd5
commit e32601e13a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 18 additions and 69 deletions

View file

@ -35,7 +35,7 @@ ftp
FTP range download with SIZE returning extra crap
</name>
<command>
ftp://%HOSTIP:%FTPPORT/337 --use-ascii --range 3-6
ftp://%HOSTIP:%FTPPORT/337 --range 3-6
</command>
</client>
@ -47,7 +47,7 @@ PASS ftp@example.com
PWD
EPSV
PASV
TYPE A
TYPE I
SIZE 337
REST 3
RETR 337