mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
bw - fix typo in misc
This commit is contained in:
parent
932761ffbd
commit
d1e157a94c
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue