bw - fix typo in misc

This commit is contained in:
fl0ppy-d1sk 2024-02-27 14:31:03 +01:00
parent 932761ffbd
commit d1e157a94c
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500

View file

@ -16,9 +16,10 @@ end
function misc:set()
local ngx_var = ngx.var
local auto_redirect = 'no'
local auto_redirect = "no"
if ngx_var.scheme == "http" and ngx_var.https_configured == "yes" then
auto_redirect = 'yes'
auto_redirect = "yes"
ngx_var.auto_redirect = auto_redirect
end
return self:ret(true, "set auto_redirect to " .. auto_redirect)
end