commit 36ee16d
default
·
2023-08-11 20:04:23 +0000 UTC
parent d305f89
Archive JSON errors in activitypub_post_handler.
1 files changed,
+2,
-0
+2,
-0
1@@ -2069,6 +2069,8 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path,
2 if (msg == NULL || xs_is_null(id = xs_dict_get(msg, "id"))) {
3 srv_log(xs_fmt("activitypub_post_handler JSON error %s", q_path));
4
5+ srv_archive_error("activitypub_post_handler", "JSON error", req, payload);
6+
7 *body = xs_str_new("JSON error");
8 *ctype = "text/plain";
9 return 400;