diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-06-07 16:47:41 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-06-07 16:47:41 +0200 |
commit | 4c1ef8149081635778c52c0be9ca49aadaea137c (patch) | |
tree | 4ce747cb283edb3809562e4aae8a1dccb186fa3b | |
parent | 94eb76c41311d00f2a44c103e0c4536343b3a4c8 (diff) | |
download | gnunet-4c1ef8149081635778c52c0be9ca49aadaea137c.tar.gz gnunet-4c1ef8149081635778c52c0be9ca49aadaea137c.zip |
do not always add json content type
-rw-r--r-- | src/rest/gnunet-rest-server.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index ba1d595fd..c7564614f 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c | |||
@@ -461,10 +461,6 @@ create_response (void *cls, | |||
461 | "Access-Control-Allow-Headers", | 461 | "Access-Control-Allow-Headers", |
462 | allow_headers); | 462 | allow_headers); |
463 | } | 463 | } |
464 | //Always add JSONAPI content type. TODO | ||
465 | MHD_add_response_header (con_handle->response, | ||
466 | MHD_HTTP_HEADER_CONTENT_TYPE, | ||
467 | "application/vnd.api+json"); | ||
468 | int ret = MHD_queue_response (con, | 464 | int ret = MHD_queue_response (con, |
469 | con_handle->status, | 465 | con_handle->status, |
470 | con_handle->response); | 466 | con_handle->response); |