curl: Also map HTTP errors for retries
authorColin Walters <walters@verbum.org>
Fri, 15 Mar 2024 22:41:02 +0000 (18:41 -0400)
committerColin Walters <walters@verbum.org>
Fri, 15 Mar 2024 22:45:22 +0000 (18:45 -0400)
commit76ab8621887f1499deb067982dd512acdf99538b
treef4b585320985d99cc4d3169b3e45391b8acccf31
parent7fdc792f856c835560a89b829bbe186765a1e6d2
curl: Also map HTTP errors for retries

When we added the retry logic, the intention here was definitely
to do it not just for network errors but also e.g. HTTP 500s and
the like.

xref https://pagure.io/releng/issue/11439
where we rather painfully debugged that this was missing.
src/libostree/ostree-fetcher-curl.c
src/libostree/ostree-fetcher-soup.c
src/libostree/ostree-fetcher-soup3.c
src/libostree/ostree-fetcher-util.c
src/libostree/ostree-fetcher-util.h