commit b5be6a017220820f48e896531737d07122364621
parent 39de21e860aea83ad41e3774e5a41e6282a88759
Author: default <nobody@localhost>
Date: Mon, 26 Sep 2022 00:01:19 +0200
Return the correct content-type.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/activitypub.c b/activitypub.c
@@ -434,6 +434,7 @@ int activitypub_get_handler(d_char *req, char *q_path,
if (status == 200 && msg != NULL) {
*body = xs_json_dumps_pp(msg, 4);
*b_size = strlen(*body);
+ *ctype = "application/activity+json";
}
user_free(&snac);