summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-26 00:01:19 +0200
committerdefault <nobody@localhost>2022-09-26 00:01:19 +0200
commitb5be6a017220820f48e896531737d07122364621 (patch)
treeadfccfca4ee0163ccbf16530844b8b4961e5cfc5 /activitypub.c
parent39de21e860aea83ad41e3774e5a41e6282a88759 (diff)
Return the correct content-type.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 8a02d7e..13d7d85 100644
--- 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);