aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-03 08:26:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-03 08:26:31 +0000
commit8ccc1148d9b6ec6ec0b371e016ce9c7cb26d2e68 (patch)
tree7ab13365f8058ac0af63ea710a64ce7069556df4 /lib
parent06c38330ba463a3a4bb343547dd71addb3073fa5 (diff)
my contentlength adjustment broke the ftp download range stuff, this makes
it work again
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index b3dbb0735..8c6f465eb 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1829,7 +1829,7 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
conn->maxdownload);
}
infof(data, "range-download from %d to %d, totally %d bytes\n",
- from, to, totalsize);
+ from, to, conn->maxdownload);
ftp->dont_check = TRUE; /* dont check for successful transfer */
}
@@ -2041,6 +2041,9 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
return result;
}
+ if(size > conn->maxdownload)
+ size = conn->size = conn->maxdownload;
+
infof(data, "Getting file with size: %d\n", size);
/* FTP download: */