Commit Diff
- Commit:
37038afa98389d7b612d7077ce821d951e55034b
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- 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); }