c-hyper: add support for transfer-encoding in the request

Closes #7348
This commit is contained in:
Daniel Stenberg 2021-07-05 15:52:39 +02:00
parent 4f3828d5a2
commit 0b0269341b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 46 additions and 27 deletions

View file

@ -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;