From 6b43ff5750100670c10e5fa6b90db3b2d4a31dd6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 30 Oct 2017 21:42:33 +0100 Subject: [SERVER] rpc: encoding of our reply is utf-8, add to reply header --- src/server/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/rpc.c') diff --git a/src/server/rpc.c b/src/server/rpc.c index 97cca9e..f01121c 100644 --- a/src/server/rpc.c +++ b/src/server/rpc.c @@ -254,7 +254,7 @@ static bool sendReply(int sock, const char *status, const char *ctype, const cha const char *connection = ( keepAlive == HTTP_KEEPALIVE ) ? "Keep-Alive" : "Close"; int hlen = snprintf(buffer, sizeof(buffer), "HTTP/1.1 %s\r\n" "Connection: %s\r\n" - "Content-Type: %s\r\n" + "Content-Type: %s; charset=utf-8\r\n" "Content-Length: %u\r\n" "\r\n", status, connection, ctype, (unsigned int)plen ); -- cgit v1.2.3-55-g7522