summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-10-06 17:33:44 +0200
committerGravatar default2023-10-06 17:33:44 +0200
commiteb04c8e4f2d58e5fed047fd9e26638ccd07509e0 (patch)
tree84a41b19db715d9483cf88c0b39976940ba2410c /activitypub.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-eb04c8e4f2d58e5fed047fd9e26638ccd07509e0.tar.gz
snac2-eb04c8e4f2d58e5fed047fd9e26638ccd07509e0.tar.xz
snac2-eb04c8e4f2d58e5fed047fd9e26638ccd07509e0.zip
On output, consider HTTP status 405 (not allowed) as a fatal error.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 514bf5d..35645af 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1942,7 +1942,7 @@ void process_queue_item(xs_dict *q_item)
1942 retries++; 1942 retries++;
1943 1943
1944 /* error sending; requeue? */ 1944 /* error sending; requeue? */
1945 if (status == 400 || status == 404 || status == 410 || status < 0) 1945 if (status == 400 || status == 404 || status == 405 || status == 410 || status < 0)
1946 /* explicit error: discard */ 1946 /* explicit error: discard */
1947 srv_log(xs_fmt("output message: fatal error %s %d", inbox, status)); 1947 srv_log(xs_fmt("output message: fatal error %s %d", inbox, status));
1948 else 1948 else