Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Curl#curl_headers: Work with 8 exit_status
I recently noticed that ~23 `livecheck` blocks using the `HeaderMatch` strategy were failing. Looking into it, these fail when using a `HEAD` request and retry with `GET` but the resulting response with the headers we want is simply discarded because the `exit_status` from curl is 8 ("weird server reply"). This resolves the issue by adding a special case for this exit status, so `#curl_headers` will return the headers in this scenario.
- Loading branch information