telize

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

commit aa8867d7e69649c71e82fc3b90b641aa0c251c03
parent 806549bb084e2c18e835cb3ad90664bdb2611e11
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat,  6 Oct 2018 22:53:04 +0200

Add the JSON_ESCAPE_SLASH flag to JSON encoding options

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

diff --git a/src/location.c b/src/location.c @@ -156,7 +156,7 @@ location(struct http_request *req) json_object_set_new(output, "organization", json_string(strndup(entry_data.utf8_string, entry_data.data_size))); } - json = json_dumps(output, JSON_INDENT(3)); + json = json_dumps(output, JSON_INDENT(3) | JSON_ESCAPE_SLASH); free(output); if (http_argument_get_string(req, "callback", &callback)) {