Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Tak <vtak@gitlab.com>2022-05-30 10:23:04 +0300
committerVishal Tak <vtak@gitlab.com>2022-05-30 10:23:04 +0300
commit1887df9a969a6888e4ba90f8c9a39e145f9ced6d (patch)
tree01eb04c7b8b704920d717e6fe55c0b7a72c2d1ab
parentd820de93ee18a6c052fd73df6743718424f00e8f (diff)
Serve 404 when domain not configureddomain-not-configured
Changelog: changed
-rw-r--r--internal/auth/auth.go2
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
}