diff options
Diffstat (limited to 'src/rest/rest.c')
-rw-r--r-- | src/rest/rest.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) | |||
48 | } | 48 | } |
49 | 49 | ||
50 | /** | 50 | /** |
51 | * Create JSON API MHD response | 51 | * Create MHD response |
52 | * | 52 | * |
53 | * @param data JSON result | 53 | * @param data result |
54 | * @retun MHD response | 54 | * @retun MHD response |
55 | */ | 55 | */ |
56 | struct MHD_Response* | 56 | struct MHD_Response* |
57 | GNUNET_REST_create_json_response (const char *data) | 57 | GNUNET_REST_create_response (const char *data) |
58 | { | 58 | { |
59 | struct MHD_Response *resp; | 59 | struct MHD_Response *resp; |
60 | size_t len; | 60 | size_t len; |
@@ -69,7 +69,6 @@ GNUNET_REST_create_json_response (const char *data) | |||
69 | resp = MHD_create_response_from_buffer (len, | 69 | resp = MHD_create_response_from_buffer (len, |
70 | (void*)data, | 70 | (void*)data, |
71 | MHD_RESPMEM_MUST_COPY); | 71 | MHD_RESPMEM_MUST_COPY); |
72 | MHD_add_response_header (resp,MHD_HTTP_HEADER_CONTENT_TYPE,"application/json"); | ||
73 | return resp; | 72 | return resp; |
74 | 73 | ||
75 | } | 74 | } |