do not resolve if not http 200
This commit is contained in:
parent
490bcd1d44
commit
909cb4916e
|
@ -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