diff options
author | Vishal Tak <vtak@gitlab.com> | 2022-05-30 10:23:04 +0300 |
---|---|---|
committer | Vishal Tak <vtak@gitlab.com> | 2022-05-30 10:23:04 +0300 |
commit | 1887df9a969a6888e4ba90f8c9a39e145f9ced6d (patch) | |
tree | 01eb04c7b8b704920d717e6fe55c0b7a72c2d1ab | |
parent | d820de93ee18a6c052fd73df6743718424f00e8f (diff) |
Serve 404 when domain not configureddomain-not-configured
Changelog: changed
-rw-r--r-- | internal/auth/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 59dd0749..84f42a53 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -218,7 +218,7 @@ func (a *Auth) handleProxyingAuth(session *hostSession, w http.ResponseWriter, r if !a.domainAllowed(r.Context(), host, domains) { logRequest(r).WithField("domain", host).Warn("Domain is not configured") - httperrors.Serve401(w) + httperrors.Serve404(w) return true } |