From 6b453bf2db7b1e3ee2ed22891fb76931687c55ec Mon Sep 17 00:00:00 2001 From: Pierre Gimalac Date: Tue, 28 Nov 2023 13:45:49 +0100 Subject: [PATCH] fix: remove superfluous http error (#21102) --- cmd/agent/api/security.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/agent/api/security.go b/cmd/agent/api/security.go index d265959ac0dd5..4d30af54912a4 100644 --- a/cmd/agent/api/security.go +++ b/cmd/agent/api/security.go @@ -27,7 +27,6 @@ var ( func validateToken(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if err := util.Validate(w, r); err != nil { - http.Error(w, http.StatusText(http.StatusForbidden), http.StatusForbidden) return } next.ServeHTTP(w, r)