telize

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

commit 2f2f7598be2c986592d82c6ba30d9fc05765451d
parent 59238393c68773ddf5dbc1f7be78bc4ee71860e9
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun, 13 Oct 2013 23:34:12 +0200

Typos and order consistency fixes

Diffstat:
Mtelize | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/telize b/telize @@ -81,11 +81,11 @@ server { isp = ngx.var.isp, } - -- validate args + -- Validate args for item, value in pairs(args) do if args[item] == "" then args[item] = nil - elseif item == "longitude" or item == "latitude" then + elseif item == "latitude" or item == "longitude" then args[item] = tonumber(value) end end @@ -98,8 +98,8 @@ server { local json = cjson.encode(args) - if ngx.var.callback then - ngx.say(ngx.var.callback, "(", json, ");") + if ngx.var.arg_callback then + ngx.say(ngx.var.arg_callback, "(", json, ");") else ngx.say(json) end';