Skip to content

Commit

Permalink
close #4483
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
  • Loading branch information
CabinfeverB committed Dec 22, 2021
1 parent 997da8c commit dd14b0b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/apiutil/serverapi/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func NewSelfProtector(s *server.Server) negroni.Handler {
func (protector *selfProtector) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {
handler := protector.s.GetSelfProtectionHandler()
if handler == nil || handler.HandleHTTPSelfProtection(r) {

failpoint.Inject("addSelfProtectionHTTPHeader", func() {
w.Header().Add("self-protection", "ok")
})
Expand Down

0 comments on commit dd14b0b

Please sign in to comment.