http: with chunked POST forced, disable length check on read callback
authorStefan Eissing <stefan@eissing.org>
Mon, 1 Apr 2024 13:41:18 +0000 (15:41 +0200)
committerSamuel Henrique <samueloph@debian.org>
Mon, 29 Apr 2024 17:28:54 +0000 (18:28 +0100)
commit88b1e739d59f0604e992dd7e5a21bbe0a3885c73
tree401d376ded5802acf85a96b27b50b60ea75e035d
parentf5d53cd1a07427e5b6f73ee2fb7b3818b9599dfd
http: with chunked POST forced, disable length check on read callback

- when an application forces HTTP/1.1 chunked transfer encoding
  by setting the corresponding header and instructs curl to use
  the CURLOPT_READFUNCTION, disregard any POST length information.
- this establishes backward compatibility with previous curl versions

Applications are encouraged to not force "chunked", but rather
set length information for a POST. By setting -1, curl will
auto-select chunked on HTTP/1.1 and work properly on other HTTP
versions.

Reported-by: Jeff King
Origin: upstream, https://github.com/curl/curl/commit/721941aadf4adf4f6aeb3f4c0ab489bb89610c36
Last-Update: 2024-04-02

Gbp-Pq: Name fix-regression-on-chunked-post.patch
lib/http.c