[Olsr-dev] [PATCH v1 2/8] txtinfo: also send the (UTF-8) charset in the content type
Ferry Huberts
(spam-protected)
Fri Nov 27 17:26:11 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/txtinfo/src/olsrd_txtinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index c4abd84..429107b 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -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 */
--
2.5.0
More information about the Olsr-dev
mailing list