txtinfo: also send the (UTF-8) charset in the content type
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 15:12:01 +0000 (16:12 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 16:10:00 +0000 (17:10 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index c4abd84..429107b 100644 (file)
@@ -799,7 +799,7 @@ static void send_info(unsigned int send_what, int the_socket) {
   /* Print minimal http header */
   if (http_headers) {
     abuf_puts(&abuf, "HTTP/1.1 200 OK\r\n");
-    abuf_puts(&abuf, "Content-Type: text/plain\r\n\r\n");
+    abuf_puts(&abuf, "Content-Type: text/plain; charset=utf-8\r\n\r\n");
   }
 
   /* Print tables to IPC socket */