From 9bd1cbc74bed0909665983b9d98554b07a72019b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 27 Mar 2020 15:38:41 +0100 Subject: [PATCH] Dont't set header but serve ynhpanel --- access.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/access.lua b/access.lua index 2aeb26c..25a0631 100644 --- a/access.lua +++ b/access.lua @@ -318,10 +318,11 @@ 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() - - hlp.set_headers() + if hlp.has_access() then + hlp.set_headers() + end end logger.debug(ngx.var.uri.." is in unprotected_urls") return hlp.pass()