]> git.ipfire.org Git - thirdparty/curl.git/commit
http: make 416 not fail with resume + CURLOPT_FAILONERRROR
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Mar 2021 13:41:06 +0000 (14:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Mar 2021 07:26:46 +0000 (08:26 +0100)
commit6d176bee59558a1ec9dffc6633aa05e713af73f0
treea9004cd4a0edd3ddc71967bdfb9e56051f091a2f
parente8e7ef3612d28e98b7b072f8d48c2a9f0b4662b5
http: make 416 not fail with resume + CURLOPT_FAILONERRROR

When asked to resume a download, libcurl will convert that to HTTP logic
and if then the entire file is already transferred it will result in a
416 response from the HTTP server. With CURLOPT_FAILONERRROR set in that
scenario, it should *not* lead to an error return.

Updated test 1156, added test 1273

Reported-by: Jonathan Watt
Fixes #6740
Closes #6753
lib/http.c
tests/data/Makefile.inc
tests/data/test1156
tests/data/test1273 [new file with mode: 0644]
tests/libtest/lib1156.c