[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>
Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)
commit27279ec419fe0beb179d42c1049fc3533afea030
treeb5e683e52cbc944d45feb64bfc469a52434e2eb5
parent053c0c9485ccc7e6ece8fe015e5f498aa4b54d71
[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