aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index a77cc0e45..589501450 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -399,6 +399,8 @@ CURLcode Curl_http(struct connectdata *conn)
memset(http, 0, sizeof(struct HTTP));
conn->proto.http = http;
}
+ else
+ http = conn->proto.http;
if ( (conn->protocol&(PROT_HTTP|PROT_FTP)) &&
data->bits.upload) {