mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
uses the new progress functions
This commit is contained in:
parent
238baede4b
commit
582754c0e2
@ -392,7 +392,7 @@ UrgError curl_urlget(UrgTag tag, ...)
|
|||||||
data->postfields = (char *)param_obj;
|
data->postfields = (char *)param_obj;
|
||||||
break;
|
break;
|
||||||
case URGTAG_PROGRESSMODE:
|
case URGTAG_PROGRESSMODE:
|
||||||
data->progressmode = (long)param_long;
|
data->progress.mode = (long)param_long;
|
||||||
break;
|
break;
|
||||||
case URGTAG_REFERER:
|
case URGTAG_REFERER:
|
||||||
data->referer = (char *)param_obj;
|
data->referer = (char *)param_obj;
|
||||||
@ -456,6 +456,8 @@ UrgError curl_urlget(UrgTag tag, ...)
|
|||||||
|
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
|
|
||||||
|
pgrsMode(data, data->progress.mode);
|
||||||
|
|
||||||
data-> headerbuff=(char*)malloc(HEADERSIZE);
|
data-> headerbuff=(char*)malloc(HEADERSIZE);
|
||||||
if(!data->headerbuff)
|
if(!data->headerbuff)
|
||||||
return URG_FAILED_INIT;
|
return URG_FAILED_INIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user