Merge pull request #831 from SkynetLabs/resolve-skylink-v2-bogus-response
do not exit on error from /resolve
This commit is contained in:
commit
8e92a8fa19
|
@ -394,9 +394,6 @@ server {
|
||||||
local json = require('cjson')
|
local json = require('cjson')
|
||||||
local resolve = json.decode(res.body)
|
local resolve = json.decode(res.body)
|
||||||
ngx.var.skylink_v1 = resolve.skylink
|
ngx.var.skylink_v1 = resolve.skylink
|
||||||
else
|
|
||||||
ngx.say(res.body)
|
|
||||||
ngx.exit(res.status)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in New Issue