mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:53:32 +03:00
CURLOPT_HTTP_TRANSFER_DECODING: fixed
The fix in b8bd019c6a (#16959) broke the
CURLOPT_HTTP_TRANSFER_DECODING handling, shown in test 319 and curl's
--raw option.
This is a follow-up that restores the functionality.
Enable test 319 again.
Fixes #16974
Closes #16984
This commit is contained in:
parent
213115bd7e
commit
b676ae3b2a
3 changed files with 1 additions and 7 deletions
|
|
@ -770,7 +770,7 @@ CURLcode Curl_build_unencoding_stack(struct Curl_easy *data,
|
|||
/* not requested, ignore */
|
||||
CURL_TRC_WRITE(data, "decoder not requested, ignored: %.*s",
|
||||
(int)namelen, name);
|
||||
if(is_transfer) {
|
||||
if(is_transfer && !data->set.http_te_skip) {
|
||||
if(has_chunked)
|
||||
failf(data, "A Transfer-Encoding (%.*s) was listed after chunked",
|
||||
(int)namelen, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue