do not resolve if not http 200

This commit is contained in:
Karol Wypchlo 2021-06-04 17:04:44 +02:00
parent 490bcd1d44
commit 909cb4916e
1 changed files with 0 additions and 3 deletions

View File

@ -394,9 +394,6 @@ server {
local json = require('cjson')
local resolve = json.decode(res.body)
ngx.var.skylink_v1 = resolve.skylink
else
ngx.say(res.body)
ngx.exit(res.status)
end
end