road to swarm - fixing things
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user