diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -392,7 +392,7 @@ UrgError curl_urlget(UrgTag tag, ...) data->postfields = (char *)param_obj; break; case URGTAG_PROGRESSMODE: - data->progressmode = (long)param_long; + data->progress.mode = (long)param_long; break; case URGTAG_REFERER: data->referer = (char *)param_obj; @@ -456,6 +456,8 @@ UrgError curl_urlget(UrgTag tag, ...) va_end(arg); + pgrsMode(data, data->progress.mode); + data-> headerbuff=(char*)malloc(HEADERSIZE); if(!data->headerbuff) return URG_FAILED_INIT; |