missed return

This commit is contained in:
Karol Wypchlo 2021-06-18 17:00:53 +02:00
parent 800fc543f7
commit cf64fd2107
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ server {
ngx.req.set_header("SkynetMaxUploadSize", 1073741824)
-- this block runs only when accounts are enabled
if os.getenv("ACCOUNTS_ENABLED", "0") == "0" then end
if os.getenv("ACCOUNTS_ENABLED", "0") == "0" then return end
-- fetch account limits and set max upload size accordingly
local res = ngx.location.capture("/accounts/user/limits", { copy_all_vars = true })