summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 1fb09c6..fdccf1c 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -294,7 +294,7 @@ int send_to_inbox_raw(const char *keyid, const char *seckey,
294{ 294{
295 int status; 295 int status;
296 xs_dict *response; 296 xs_dict *response;
297 xs *j_msg = xs_json_dumps_pp((xs_dict *)msg, 4); 297 xs *j_msg = xs_json_dumps((xs_dict *)msg, 4);
298 298
299 response = http_signed_request_raw(keyid, seckey, "POST", inbox, 299 response = http_signed_request_raw(keyid, seckey, "POST", inbox,
300 NULL, j_msg, strlen(j_msg), &status, payload, p_size, timeout); 300 NULL, j_msg, strlen(j_msg), &status, payload, p_size, timeout);
@@ -2028,7 +2028,7 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
2028 status = 404; 2028 status = 404;
2029 2029
2030 if (status == 200 && msg != NULL) { 2030 if (status == 200 && msg != NULL) {
2031 *body = xs_json_dumps_pp(msg, 4); 2031 *body = xs_json_dumps(msg, 4);
2032 *b_size = strlen(*body); 2032 *b_size = strlen(*body);
2033 } 2033 }
2034 2034