Clarify code 400 return in edge case where there's no default portal redirection

This commit is contained in:
Alexandre Aubin 2024-01-30 21:10:17 +01:00
parent e877b2ee85
commit b2fe0da547

View file

@ -343,9 +343,9 @@ else
end end
if portal_domain == nil then if portal_domain == nil then
ngx.header['Content-Type'] = "text/html" ngx.header['Content-Type'] = "text/html"
ngx.status = 400 ngx.status = ngx.HTTP_BAD_REQUEST
ngx.say("Unmanaged domain") ngx.say("Unmanaged domain")
return ngx.exit(200) return ngx.exit()
end end
portal_url = "https://" .. portal_domain portal_url = "https://" .. portal_domain