mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
calls Curl_initinfo() in perform().
This commit is contained in:
parent
7994817185
commit
db9bb9221f
@ -90,6 +90,8 @@
|
|||||||
#include "progress.h"
|
#include "progress.h"
|
||||||
#include "getdate.h"
|
#include "getdate.h"
|
||||||
#include "http.h"
|
#include "http.h"
|
||||||
|
#include "url.h"
|
||||||
|
#include "getinfo.h"
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
@ -862,10 +864,9 @@ Transfer(struct connectdata *c_conn)
|
|||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
CURLcode Curl_perform(CURL *curl)
|
CURLcode Curl_perform(struct UrlData *data)
|
||||||
{
|
{
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct UrlData *data = (struct UrlData *)curl;
|
|
||||||
struct connectdata *conn=NULL;
|
struct connectdata *conn=NULL;
|
||||||
bool port=TRUE; /* allow data->use_port to set port to use */
|
bool port=TRUE; /* allow data->use_port to set port to use */
|
||||||
char *newurl = NULL; /* possibly a new URL to follow to! */
|
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->followlocation=0; /* reset the location-follow counter */
|
||||||
data->bits.this_is_a_follow = FALSE; /* reset this */
|
data->bits.this_is_a_follow = FALSE; /* reset this */
|
||||||
|
|
||||||
|
Curl_initinfo(data); /* reset session-specific information "variables" */
|
||||||
|
|
||||||
Curl_pgrsStartNow(data);
|
Curl_pgrsStartNow(data);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user