summaryrefslogtreecommitdiff
path: root/lib/c-hyper.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-07-05 15:52:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-05 22:46:01 +0200
commit0b0269341b392aec99c69354c5259b4fc38c6b10 (patch)
tree56cf1d0253fe808b799f5c25bcd5df25568b4bc0 /lib/c-hyper.c
parent4f3828d5a2482a3eed76219bbe8d5f896e990e2a (diff)
downloadcurl-0b0269341b392aec99c69354c5259b4fc38c6b10.tar.gz
c-hyper: add support for transfer-encoding in the request
Closes #7348
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r--lib/c-hyper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c
index adbd3fe76..e5b352c99 100644
--- a/lib/c-hyper.c
+++ b/lib/c-hyper.c
@@ -885,6 +885,15 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
else
Curl_safefree(data->state.aptr.accept_encoding);
+#ifdef HAVE_LIBZ
+ /* we only consider transfer-encoding magic if libz support is built-in */
+ result = Curl_transferencode(data);
+ if(result)
+ return result;
+ if(Curl_hyper_header(data, headers, data->state.aptr.te))
+ goto error;
+#endif
+
result = cookies(data, conn, headers);
if(result)
return result;