summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-09-26 00:01:19 +0200
committerGravatar default2022-09-26 00:01:19 +0200
commitb5be6a017220820f48e896531737d07122364621 (patch)
treeadfccfca4ee0163ccbf16530844b8b4961e5cfc5 /activitypub.c
parentNew file README.md. (diff)
downloadsnac2-b5be6a017220820f48e896531737d07122364621.tar.gz
snac2-b5be6a017220820f48e896531737d07122364621.tar.xz
snac2-b5be6a017220820f48e896531737d07122364621.zip
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,
434 if (status == 200 && msg != NULL) { 434 if (status == 200 && msg != NULL) {
435 *body = xs_json_dumps_pp(msg, 4); 435 *body = xs_json_dumps_pp(msg, 4);
436 *b_size = strlen(*body); 436 *b_size = strlen(*body);
437 *ctype = "application/activity+json";
437 } 438 }
438 439
439 user_free(&snac); 440 user_free(&snac);