Skip to content

Commit

Permalink
revert commit
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jun 21, 2023
1 parent eaf8c51 commit 0e2c9b2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions agent/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,8 @@ func (s *HTTPHandlers) handler() http.Handler {

wrapper := func(resp http.ResponseWriter, req *http.Request) {

if s.checkACLDisabled() {
resp.WriteHeader(http.StatusForbidden)
return
}

// If enableDebug register wrapped pprof handlers
if !s.agent.enableDebug.Load() {
if !s.agent.enableDebug.Load() && s.checkACLDisabled() {
resp.WriteHeader(http.StatusNotFound)
return
}
Expand Down

0 comments on commit 0e2c9b2

Please sign in to comment.