[PATCH] content_encoding: brotli and others, pass through 0-length writes
authorStefan Eissing <stefan@eissing.org>
Thu, 28 Mar 2024 10:08:15 +0000 (11:08 +0100)
committerSamuel Henrique <samueloph@debian.org>
Mon, 29 Apr 2024 17:28:54 +0000 (18:28 +0100)
commitd42d303a3ba163e432ff55b6ae86b380ddcb0f7a
tree380691b443307a08cae6321077b75e9520a5c23b
parentd412acb34ae4008e031c24a130c46e74f5fe71f1
[PATCH] content_encoding: brotli and others, pass through 0-length writes

- curl's transfer handling may write 0-length chunks at the end of the
  download with an EOS flag. (HTTP/2 does this commonly)

- content encoders need to pass-through such a write and not count this
  as error in case they are finished decoding

Fixes #13209
Fixes #13212
Closes #13219

Gbp-Pq: Name content_encoding_brotli_and_others_pass_through_0_length_writes.patch
lib/content_encoding.c
tests/http/test_02_download.py
tests/http/testenv/env.py
tests/http/testenv/httpd.py