From aa4435c23b008450124d8c015e896d1002cb93ca Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Feb 2007 15:37:05 +0000 Subject: - Duncan Mac-Vicar Prett and Michal Marek reported problems with resetting CURLOPT_RANGE back to no range on an easy handle when using FTP. --- lib/ftp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/ftp.c b/lib/ftp.c index 6645e8e44..4371eb683 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -3285,6 +3285,8 @@ static CURLcode ftp_range(struct connectdata *conn) from, to, data->reqdata.maxdownload)); ftpc->dont_check = TRUE; /* dont check for successful transfer */ } + else + data->reqdata.maxdownload = -1; return CURLE_OK; } -- cgit v1.2.3