Dont't set header but serve ynhpanel

This commit is contained in:
Josué Tille 2020-03-27 15:38:41 +01:00 committed by Alexandre Aubin
parent fb910facec
commit 9bd1cbc74b

View file

@ -318,10 +318,11 @@ end
if longest_unprotected_match ~= "" if longest_unprotected_match ~= ""
and string.len(longest_unprotected_match) > string.len(longest_protected_match) then and string.len(longest_unprotected_match) > string.len(longest_protected_match) then
if hlp.is_logged_in() and hlp.has_access() then if hlp.is_logged_in() then
serveYnhpanel() serveYnhpanel()
if hlp.has_access() then
hlp.set_headers() hlp.set_headers()
end
end end
logger.debug(ngx.var.uri.." is in unprotected_urls") logger.debug(ngx.var.uri.." is in unprotected_urls")
return hlp.pass() return hlp.pass()