Skip to content
Snippets Groups Projects
Commit 8ccc1148 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

my contentlength adjustment broke the ftp download range stuff, this makes

it work again
parent 06c38330
No related branches found
No related tags found
No related merge requests found
......@@ -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: */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment