[PATCH] sendf: ignore response body to HEAD
authorDaniel Stenberg <daniel@haxx.se>
Thu, 1 Feb 2024 12:23:12 +0000 (13:23 +0100)
committerSamuel Henrique <samueloph@debian.org>
Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)
commit5bcd3aac939c54471e6a0d91da679139f25112c2
treeec803ab75b260245b96522129dec8a21170dac2f
parent50c9bd479a025216f15c17536f7f67d9e348b696
[PATCH] sendf: ignore response body to HEAD

and mark the stream for close, but return OK since the response this far
was ok - if headers were received. Partly because this is what curl has
done traditionally.

Test 499 verifies. Updates test 689.

Reported-by: Sergey Bronnikov
Bug: https://curl.se/mail/lib-2024-02/0000.html
Closes #12842

Gbp-Pq: Name sendf_ignore_response_body_to_head.patch
lib/sendf.c
tests/data/Makefile.inc
tests/data/test499 [new file with mode: 0644]
tests/data/test689