瀏覽代碼

do not always add json content type

Schanzenbach, Martin 5 年之前
父節點
當前提交
4c1ef81490
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/rest/gnunet-rest-server.c

+ 0 - 4
src/rest/gnunet-rest-server.c

@@ -461,10 +461,6 @@ create_response (void *cls,
                                "Access-Control-Allow-Headers",
                                allow_headers);
     }
-    //Always add JSONAPI content type. TODO
-    MHD_add_response_header (con_handle->response,
-                             MHD_HTTP_HEADER_CONTENT_TYPE,
-                             "application/vnd.api+json");
     int ret = MHD_queue_response (con,
                                   con_handle->status,
                                   con_handle->response);