mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Archive JSON errors in activitypub_post_handler.
This commit is contained in:
parent
d305f899eb
commit
36ee16db1d
1 changed files with 2 additions and 0 deletions
|
@ -2069,6 +2069,8 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path,
|
|||
if (msg == NULL || xs_is_null(id = xs_dict_get(msg, "id"))) {
|
||||
srv_log(xs_fmt("activitypub_post_handler JSON error %s", q_path));
|
||||
|
||||
srv_archive_error("activitypub_post_handler", "JSON error", req, payload);
|
||||
|
||||
*body = xs_str_new("JSON error");
|
||||
*ctype = "text/plain";
|
||||
return 400;
|
||||
|
|
Loading…
Reference in a new issue