commit 37038afa98389d7b612d7077ce821d951e55034b from: Omar Polo via: Thomas Adam date: Sat Mar 30 17:21:23 2024 UTC got-notify-http: reject 3XX status codes At least for now, we don't support following redirects nor retrying the post, so consider a 3XX status a failure too. commit - 2403c80c372b1d6deacb38b0bf9bee1b145e6529 commit + 37038afa98389d7b612d7077ce821d951e55034b blob - 779b64b8f926d8b54243bbffe99d9cb186659d70 blob + 80cfc6f803bbf046beb7285ddb64fd7ef3169391 --- gotd/libexec/got-notify-http/got-notify-http.c +++ gotd/libexec/got-notify-http/got-notify-http.c @@ -618,7 +618,7 @@ main(int argc, char **argv) } } - if (response_code >= 200 && response_code < 400) + if (response_code >= 200 && response_code < 300) return 0; errx(1, "request failed with code %d", response_code); }