telize

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

commit 2faf3d439e3e8d7c226f3d5184475059c0c93470
parent ed30ae6ea6986f354ef7da0d43b75c1180c06d3b
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 20 Apr 2022 23:52:03 +0200

Account for Kore 4.2 changes in http_request structure.

Diffstat:
Msrc/location.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/location.c b/src/location.c @@ -4,7 +4,7 @@ * https://www.telize.com * * Created: 2013-08-15 - * Last Updated: 2021-03-29 + * Last Updated: 2022-04-20 * * Telize is released under the BSD 2-Clause license. * See LICENSE file for details. @@ -50,7 +50,7 @@ request_location(struct http_request *req) "application/json; charset=utf-8"); /* Specific IP passed in the URL */ - if (req->hdlr->type == HANDLER_TYPE_DYNAMIC) { + if (req->rt->type == HANDLER_TYPE_DYNAMIC) { if ((ptr = strrchr(req->path, '/')) != NULL) { ptr++; len = strlen(ptr);