road to swarm - fixing things

This commit is contained in:
bunkerity
2021-03-12 17:31:26 +01:00
parent 95f7ca5b2d
commit 3591715f21
12 changed files with 57 additions and 51 deletions

View File

@@ -1,9 +1,9 @@
set api_uri "%API_URI%";
rewrite_by_lua_block {
local api = require "api"
ngx.var.api_uri = "%API_URI%
if api.is_api_call() then
ngx.header.content_type = 'text/plain'
if api.do_api_call() then