got-notify-http: reject 3XX status codes
commit3b44bdbe821e92c08ae1074b204b273b661e1941
authorOmar Polo <op@omarpolo.com>
Wed, 27 Mar 2024 22:03:23 +0000 (27 22:03 +0000)
committerOmar Polo <op@omarpolo.com>
Wed, 27 Mar 2024 22:03:23 +0000 (27 22:03 +0000)
tree56c7091c081bf2de25eb00fd54439b57e7a6b607
parent83fccf2ddf25d8a98b076afeb22dfa6d7f6aaad2
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.
gotd/libexec/got-notify-http/got-notify-http.c