http: prefer chunked encoding over Content-Length: 0

Call http_size() before checking the request for empty body to prefer
Transfer-Encoding: chunked even if Content-Length is 0.

Closes #21706
This commit is contained in:
Josef Cejka 2026-05-20 18:07:16 +02:00 committed by Daniel Stenberg
parent 28341c303d
commit ba600296d2
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 89 additions and 9 deletions

View file

@ -222,7 +222,7 @@ test1650 test1651 test1652 test1653 test1654 test1655 test1656 test1657 \
test1658 test1659 test1660 test1661 test1662 test1663 test1664 test1665 \
test1666 test1667 test1668 test1669 \
\
test1670 test1671 test1672 test1673 test1674 test1675 test1676 \
test1670 test1671 test1672 test1673 test1674 test1675 test1676 test1677 \
\
test1680 test1681 test1682 test1683 test1684 test1685 \
\