I did this
curl 8.6.0 shows the verbose message "Leftovers after chunking: X bytes" when it receives a response with "Transfer-Encoding: chunked".
Example:
$ curl -s -v --http1.1 https://echo.free.beeceptor.com > /dev/null
[...]
< HTTP/1.1 200 OK
< Alt-Svc: h3=":443"; ma=2592000
< Content-Type: application/json
< Date: Wed, 14 Feb 2024 14:40:48 GMT
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
{ [5 bytes data]
* Leftovers after chunking: 5 bytes
* Connection #0 to host echo.free.beeceptor.com left intact
"git bisect" found commit d7b6ce6
I expected the following
No message "Leftovers after chunking".
curl 8.2.1 does not have the bug:
curl -s -v --http1.1 https://echo.free.beeceptor.com > /dev/null
[...]
< HTTP/1.1 200 OK
< Alt-Svc: h3=":443"; ma=2592000
< Content-Type: application/json
< Date: Wed, 14 Feb 2024 14:47:05 GMT
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
{ [5 bytes data]
* Connection #0 to host echo.free.beeceptor.com left intact
curl/libcurl version
curl 8.6.0
operating system
Fedora Linux 39
I did this
curl 8.6.0 shows the verbose message "Leftovers after chunking: X bytes" when it receives a response with "Transfer-Encoding: chunked".
Example:
"git bisect" found commit d7b6ce6
I expected the following
No message "Leftovers after chunking".
curl 8.2.1 does not have the bug:
curl/libcurl version
curl 8.6.0
operating system
Fedora Linux 39