http: have CURLOPT_FAILONERROR fail after all headers

... so that Retry-After and other meta-content can still be used.

Added 1634 to verify. Adjusted test 194 and 281 since --fail now also
includes the header-terminating CRLF in the output before it exits.

Fixes #6408
Closes #6409
This commit is contained in:
Daniel Stenberg 2021-01-04 18:28:42 +01:00
parent 9d7281ff17
commit ab525c059e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 90 additions and 37 deletions

View file

@ -14,11 +14,8 @@ HTTP/1.1 401 Bad Auth swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
WWW-Authenticate: Basic Realm=authenticate
Server: test-server/fake
</data>
<datacheck>
HTTP/1.1 100 Continue
</datacheck>
</data>
</reply>