From: Ferry Huberts Date: Fri, 27 Nov 2015 15:04:21 +0000 (+0100) Subject: jsoninfo: also send the (UTF-8) charset in the content type X-Git-Tag: v0.9.5~594 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=982fdb9b3f51434ed5259421c19897e93211c32c;ds=sidebyside jsoninfo: also send the (UTF-8) charset in the content type Signed-off-by: Ferry Huberts --- diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c index 783efafa..2ba7efc0 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;