summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-15 06:53:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-15 06:53:10 +0000
commitdb9bb9221f4364ad4c9eb93796a30215f4f11d98 (patch)
treee5489c689b4e7f06ad7b4fd32af0ffc3393f4c73
parent79948171853f6b2b472494dd4197e2b36fbaeb39 (diff)
downloadgnurl-db9bb9221f4364ad4c9eb93796a30215f4f11d98.tar.gz
gnurl-db9bb9221f4364ad4c9eb93796a30215f4f11d98.tar.bz2
gnurl-db9bb9221f4364ad4c9eb93796a30215f4f11d98.zip
calls Curl_initinfo() in perform().
-rw-r--r--lib/transfer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 9b4db1023..bef206436 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -90,6 +90,8 @@
#include "progress.h"
#include "getdate.h"
#include "http.h"
+#include "url.h"
+#include "getinfo.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -862,10 +864,9 @@ Transfer(struct connectdata *c_conn)
return CURLE_OK;
}
-CURLcode Curl_perform(CURL *curl)
+CURLcode Curl_perform(struct UrlData *data)
{
CURLcode res;
- struct UrlData *data = (struct UrlData *)curl;
struct connectdata *conn=NULL;
bool port=TRUE; /* allow data->use_port to set port to use */
char *newurl = NULL; /* possibly a new URL to follow to! */
@@ -877,6 +878,8 @@ CURLcode Curl_perform(CURL *curl)
data->followlocation=0; /* reset the location-follow counter */
data->bits.this_is_a_follow = FALSE; /* reset this */
+ Curl_initinfo(data); /* reset session-specific information "variables" */
+
Curl_pgrsStartNow(data);
do {