From e2e045f3fef2231c435ae7dacbb5e947a0193a20 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 5 May 2016 09:13:47 +0000 Subject: - remove HAVE_REST, remove json reference from rest --- src/rest/rest.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/rest/rest.c') diff --git a/src/rest/rest.c b/src/rest/rest.c index bf32c9849..b0d7e5ace 100644 --- a/src/rest/rest.c +++ b/src/rest/rest.c @@ -48,13 +48,13 @@ GNUNET_REST_namespace_match (const char *url, const char *namespace) } /** - * Create JSON API MHD response + * Create MHD response * - * @param data JSON result + * @param data result * @retun MHD response */ struct MHD_Response* -GNUNET_REST_create_json_response (const char *data) +GNUNET_REST_create_response (const char *data) { struct MHD_Response *resp; size_t len; @@ -69,7 +69,6 @@ GNUNET_REST_create_json_response (const char *data) resp = MHD_create_response_from_buffer (len, (void*)data, MHD_RESPMEM_MUST_COPY); - MHD_add_response_header (resp,MHD_HTTP_HEADER_CONTENT_TYPE,"application/json"); return resp; } -- cgit v1.2.3