mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:53:36 +03:00
Adjusted to use the new Transfer() instead of the old Download()
This commit is contained in:
parent
d2af77e60c
commit
15755b3fd8
3 changed files with 26 additions and 23 deletions
|
|
@ -754,7 +754,8 @@ UrgError _ftp(struct UrlData *data,
|
|||
size prior to the actual upload. */
|
||||
|
||||
ProgressInit(data, data->infilesize);
|
||||
result = Upload(data, data->secondarysocket, bytecountp);
|
||||
result = Transfer(data, -1, -1, FALSE, NULL, /* no download */
|
||||
data->secondarysocket, bytecountp);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
|
|
@ -977,8 +978,9 @@ UrgError _ftp(struct UrlData *data,
|
|||
infof(data, "Getting file with size: %d\n", size);
|
||||
|
||||
/* FTP download: */
|
||||
result=Download(data, data->secondarysocket, size, FALSE,
|
||||
bytecountp);
|
||||
result=Transfer(data, data->secondarysocket, size, FALSE,
|
||||
bytecountp,
|
||||
-1, NULL); /* no upload here */
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue