mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:13:38 +03:00
content_encoding: exact-match the identity transfer-coding token
Verified by test 2119 Closes #22541
This commit is contained in:
parent
4d9ba9fef4
commit
f5378b88a9
3 changed files with 57 additions and 2 deletions
|
|
@ -783,7 +783,8 @@ CURLcode Curl_build_unencoding_stack(struct Curl_easy *data,
|
|||
* Exception is "chunked" transfer-encoding which always must happen */
|
||||
if((is_transfer && !data->set.http_transfer_encoding && !is_chunked) ||
|
||||
(!is_transfer && data->set.http_ce_skip)) {
|
||||
bool is_identity = curl_strnequal(name, "identity", 8);
|
||||
bool is_identity = (namelen == 8) &&
|
||||
curl_strnequal(name, "identity", 8);
|
||||
/* not requested, ignore */
|
||||
CURL_TRC_WRITE(data, "decoder not requested, ignored: %.*s",
|
||||
(int)namelen, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue