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:
authorAlessio Caiazza <acaiazza@gitlab.com>2019-02-25 17:15:14 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-07-06 02:13:51 +0300
commitcac920323f196072c28bee611a4ee9157316cd6f (patch)
tree204b677760ac5e7f58cb0d4776f3217dbee17a83 /internal/auth/auth.go
parentf204fde955e305122467ed70f38edd342a8776ce (diff)
Serve custom 404 even in case of auth failure
Diffstat (limited to 'internal/auth/auth.go')
-rw-r--r--internal/auth/auth.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index 6dce1ab8..453edff2 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -471,9 +471,7 @@ func (a *Auth) checkAuthentication(w http.ResponseWriter, r *http.Request, proje
logRequest(r).WithError(err).Error("Failed to retrieve info with token")
}
- // We return 404 if for some reason token is not valid to avoid (not) existence leak
- httperrors.Serve404(w)
- return true
+ return false
}
return false