mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix return value when no plugins have been found in api.lua
This commit is contained in:
parent
6ab48d9dd2
commit
ec48e66011
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ function api:do_api_call()
|
|||
local list, err = self.datastore:get("plugins")
|
||||
if not list then
|
||||
local status, resp = self:response(ngx.HTTP_INTERNAL_SERVER_ERROR, "error", "can't list loaded plugins : " .. err)
|
||||
return false, resp["msg"], ngx.HTTP_INTERNAL_SERVER_ERROR, resp
|
||||
return false, resp["msg"], ngx.HTTP_INTERNAL_SERVER_ERROR, cjson.encode(resp)
|
||||
end
|
||||
list = cjson.decode(list)
|
||||
for i, plugin in ipairs(list) do
|
||||
|
|
|
|||
Loading…
Reference in a new issue