Dont't set header but serve ynhpanel

This commit is contained in:
Josué Tille 2020-03-27 15:38:41 +01:00
parent b1080c1e1a
commit ef3d6af9e0
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

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()