summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-20 10:58:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-20 10:58:12 +0100
commit60e8e44a5e86a8d14389697f7143c3175f76ddef (patch)
treeca4608db1f117c1e7e489bbf7ae8deb490e0ec3f /lib/http_proxy.c
parentfb4c5d55b5f0fae834ffc1cc14006f4ed7f4af18 (diff)
downloadcurl-bagder/chunk-encoding-data.tar.gz
chunk/encoding: remove conn->data referencesbagder/chunk-encoding-data
... by anchoring more functions on Curl_easy instad of connectdata
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 37f787ba5..8bc86446f 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -391,7 +391,7 @@ static CURLcode CONNECT(struct connectdata *conn,
/* now parse the chunked piece of data so that we can
properly tell when the stream ends */
- r = Curl_httpchunk_read(conn, &byte, 1, &tookcareof, &extra);
+ r = Curl_httpchunk_read(data, &byte, 1, &tookcareof, &extra);
if(r == CHUNKE_STOP) {
/* we're done reading chunks! */
infof(data, "chunk reading DONE\n");
@@ -472,7 +472,7 @@ static CURLcode CONNECT(struct connectdata *conn,
/* now parse the chunked piece of data so that we can properly
tell when the stream ends */
- r = Curl_httpchunk_read(conn, linep + 1, 1, &gotbytes,
+ r = Curl_httpchunk_read(data, linep + 1, 1, &gotbytes,
&extra);
if(r == CHUNKE_STOP) {
/* we're done reading chunks! */
@@ -545,7 +545,7 @@ static CURLcode CONNECT(struct connectdata *conn,
infof(data, "CONNECT responded chunked\n");
s->chunked_encoding = TRUE;
/* init our chunky engine */
- Curl_httpchunk_init(conn);
+ Curl_httpchunk_init(data);
}
}
else if(Curl_compareheader(linep, "Proxy-Connection:", "close"))