Skip to content

Commit

Permalink
fix: remove superfluous http error (#21102)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgimalac authored Nov 28, 2023
1 parent 583067e commit 6b453bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/agent/api/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b453bf

Please sign in to comment.