telize

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

commit 8ad935611c368540371e618e41f1ed616dd8703c
parent 5ed33f31da36bc1c2a7a788c44a073107ad9c3fd
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  2 Mar 2018 22:17:03 +0100

Do not use parentheses for require

Diffstat:
Mtelize.conf | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/telize.conf b/telize.conf @@ -5,7 +5,7 @@ # https://www.telize.com # # # # Created: 2013-08-15 # -# Last Updated: 2018-02-05 # +# Last Updated: 2018-03-02 # # # # Telize is released under the BSD 2-Clause license. # # See LICENSE file for details. # @@ -44,7 +44,7 @@ server { default_type application/json; content_by_lua_block { - local cjson = require("cjson") + local cjson = require "cjson" local json = cjson.encode({ ip = ngx.var.remote_addr @@ -87,7 +87,7 @@ server { } content_by_lua_block { - local cjson = require("cjson") + local cjson = require "cjson" ngx.header["Cache-Control"] = "no-cache";