summaryrefslogtreecommitdiff
path: root/lib/transfer.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-21 13:19:58 +0100
commitc977a6d0dc2b124168af0746915564a371427ee0 (patch)
treebfb40023d9da4febc0ea7e6a240594e3c7744a49 /lib/transfer.c
parent0a5827571f97feded67d6abc837c332224917f75 (diff)
downloadcurl-c977a6d0dc2b124168af0746915564a371427ee0.tar.gz
chunk/encoding: remove conn->data references
... by anchoring more functions on Curl_easy instead of connectdata Closes #6498
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 4f869b90d..bd89bf8dd 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -741,7 +741,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
*/
CURLcode extra;
CHUNKcode res =
- Curl_httpchunk_read(conn, k->str, nread, &nread, &extra);
+ Curl_httpchunk_read(data, k->str, nread, &nread, &extra);
if(CHUNKE_OK < res) {
if(CHUNKE_PASSTHRU_ERROR == res) {
@@ -841,7 +841,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
}
}
else if(!k->ignorebody)
- result = Curl_unencode_write(conn, k->writer_stack, k->str, nread);
+ result = Curl_unencode_write(data, k->writer_stack, k->str, nread);
}
k->badheader = HEADER_NORMAL; /* taken care of now */