aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-02-16 15:37:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-02-16 15:37:05 +0000
commitaa4435c23b008450124d8c015e896d1002cb93ca (patch)
tree8bd60d8a3417139d4e95ab69ddd53356e7acc084 /lib/ftp.c
parentdca8f962e07365fcd87f527da32476c157db109b (diff)
- Duncan Mac-Vicar Prett and Michal Marek reported problems with resetting
CURLOPT_RANGE back to no range on an easy handle when using FTP.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 2 insertions, 0 deletions
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;
}