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,11 +318,12 @@ end
if longest_unprotected_match ~= ""
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()
if hlp.has_access() then
hlp.set_headers()
end
end
logger.debug(ngx.var.uri.." is in unprotected_urls")
return hlp.pass()
end