autoconf - fixing various bug when SWARM_MODE=yes

This commit is contained in:
bunkerity
2021-05-28 12:16:56 +02:00
parent 0f8e56a668
commit dfce0c06dd
4 changed files with 20 additions and 36 deletions

View File

@@ -10,10 +10,10 @@ rewrite_by_lua_block {
ngx.header.content_type = 'text/plain'
if api.do_api_call(api_uri) then
logger.log(ngx.NOTICE, "API", "API call " .. ngx.var.request_uri .. " successfull from " .. ngx.var.remote_addr)
ngx.say("ok")
ngx.print("ok")
else
logger.log(ngx.WARN, "API", "API call " .. ngx.var.request_uri .. " failed from " .. ngx.var.remote_addr)
ngx.say("ko")
ngx.print("ko")
end
ngx.exit(ngx.HTTP_OK)