projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spell out message types more, use correct conversion direction
[oweals/gnunet.git]
/
src
/
rest
/
rest.c
diff --git
a/src/rest/rest.c
b/src/rest/rest.c
index bf32c9849c785e3c0f96c90a4d88e256e7c1ddeb..94803a30696f796069c45e97def080b90d6f71a2 100644
(file)
--- a/
src/rest/rest.c
+++ b/
src/rest/rest.c
@@
-28,7
+28,6
@@
#include "gnunet_util_lib.h"
#include "gnunet_rest_lib.h"
#include "microhttpd.h"
#include "gnunet_util_lib.h"
#include "gnunet_rest_lib.h"
#include "microhttpd.h"
-#include <jansson.h>
/**
* REST Utilities
/**
* REST Utilities
@@
-48,13
+47,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*
* @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;
{
struct MHD_Response *resp;
size_t len;
@@
-69,7
+68,6
@@
GNUNET_REST_create_json_response (const char *data)
resp = MHD_create_response_from_buffer (len,
(void*)data,
MHD_RESPMEM_MUST_COPY);
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;
}
return resp;
}