]> git.ipfire.org Git - thirdparty/curl.git/commit
content_encoding: Transfer-Encoding parser improvements
authorDaniel Stenberg <daniel@haxx.se>
Fri, 4 Apr 2025 07:54:49 +0000 (09:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 5 Apr 2025 16:23:07 +0000 (18:23 +0200)
commitb8bd019c6a021821cc6fdb545d7149bdf4bb50cb
tree3834c11814c8d0cc68b494d92be785d98dd5b88d
parent3454844f36efb102afb5e775975b9dbf1544b54c
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
lib/content_encoding.c
tests/data/DISABLED
tests/data/Makefile.am
tests/data/test1493 [new file with mode: 0644]
tests/data/test1494 [new file with mode: 0644]
tests/data/test1495 [new file with mode: 0644]
tests/data/test1496 [new file with mode: 0644]
tests/data/test319