소스 검색

Return the correct content-type.

default 4 년 전
부모
커밋
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);