telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 437137cdd77d2f71a378bdd91d3392fc95ae5a2f
parent 414335e1663856f2f35ce83b1199ae9f1925677a
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  5 Oct 2018 00:08:01 +0200

Set the HTTP charset parameter to 'utf-8' for the 'jsonip' endpoint

Diffstat:
Msrc/jsonip.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jsonip.c b/src/jsonip.c @@ -51,7 +51,7 @@ jsonip(struct http_request *req) answer = json; } - http_response_header(req, "content-type", "application/json"); + http_response_header(req, "content-type", "application/json; charset=utf-8"); http_response(req, 200, answer, strlen(answer)); return (KORE_RESULT_OK);