do not always add json content type
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 7 Jun 2019 14:47:41 +0000 (16:47 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 7 Jun 2019 14:47:41 +0000 (16:47 +0200)
src/rest/gnunet-rest-server.c

index ba1d595fd8c6b10b7b21f2909c17cf056aa30dc0..c7564614ff7e55c66fd0e909c790935f13cb33ed 100644 (file)
@@ -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);