瀏覽代碼

Return the correct content-type.

default 3 年之前
父節點
當前提交
b5be6a0172
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      activitypub.c

+ 1 - 0
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);