telize

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

commit 910f0fbd29768287d188a90e0c5ff30c8c641bd0
parent ca4e752c35e8a6254d85fae156cc256f2658de2a
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  4 Oct 2018 23:22:33 +0200

Set "content-type" header to "text/plain" for the 'ip' endpoint

Diffstat:
Msrc/ip.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/ip.c b/src/ip.c @@ -37,6 +37,7 @@ ip(struct http_request *req) ip = addr; } + http_response_header(req, "content-type", "text/plain"); http_response(req, 200, ip, strlen(ip)); return (KORE_RESULT_OK);