aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-02-14 23:03:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-02-14 23:03:05 +0000
commit582754c0e24c36de3930ca40d99152e811da188b (patch)
tree46b0e7a0df81a19a8f0bbe93ca19956cdd0d9aa5
parent238baede4b24549a8cd9f10d72540268fa9af0e9 (diff)
uses the new progress functions
-rw-r--r--lib/url.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 0443f1608..39046ea37 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;