From b2fe0da54754cbb290dbb0f404e29bccf5787b34 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 30 Jan 2024 21:10:17 +0100 Subject: [PATCH] Clarify code 400 return in edge case where there's no default portal redirection --- access.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/access.lua b/access.lua index 599aa94..6be422a 100644 --- a/access.lua +++ b/access.lua @@ -343,9 +343,9 @@ else end if portal_domain == nil then ngx.header['Content-Type'] = "text/html" - ngx.status = 400 + ngx.status = ngx.HTTP_BAD_REQUEST ngx.say("Unmanaged domain") - return ngx.exit(200) + return ngx.exit() end portal_url = "https://" .. portal_domain