[Olsr-dev] [PATCH v1 5/8] jsoninfo: also send the (UTF-8) charset in the content type
Ferry Huberts
(spam-protected)
Fri Nov 27 17:26:14 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/jsoninfo/src/olsrd_jsoninfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c
index 783efaf..2ba7efc 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
@@ -1197,7 +1197,7 @@ static void info_write_data(void *foo __attribute__ ((unused))) {
static void send_info(unsigned int send_what, int the_socket) {
struct autobuf abuf;
- const char *content_type = (send_what & SIW_ALL) ? "application/json" : "text/plain";
+ const char *content_type = (send_what & SIW_ALL) ? "application/json; charset=utf-8" : "text/plain; charset=utf-8";
int contentLengthPlaceholderStart = 0;
int headerLength = 0;
--
2.5.0
More information about the Olsr-dev
mailing list