content_encoding: Transfer-Encoding parser improvements

- allow and ignore "identity" as an encoding

- fail if any other encoder than chunked follows after chunked

- fail on unsolicited encodings - when the server encodes but curl did
  not ask for it

Add test 1493 to 1496 to verify.

Disable test 319 as that is now broken: issue #16974

Reported-by: Jonathan Rosa
Fixes #16956
Closes #16959
This commit is contained in:
Daniel Stenberg 2025-04-04 09:54:49 +02:00
parent 3454844f36
commit b8bd019c6a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 255 additions and 7 deletions

View file

@ -27,6 +27,8 @@
# per line.
# Lines starting with '#' letters are treated as comments.
#
# PR #16959 makes Transfer-Encoding stricer and thus --raw broke
319
# Uses SRP to "a server not supporting it" but modern stunnel versions
# will silently accept it and remain happy
323