Skip to content

Commit

Permalink
fix http continue
Browse files Browse the repository at this point in the history
  • Loading branch information
mazrean committed Aug 9, 2024
1 parent 1857263 commit 4e1c4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ func StdMetricsMiddleware(next http.Handler) http.Handler {
return next
}

benchmark.Continue()

return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
if !config.Enable {
next.ServeHTTP(res, req)
return
}

benchmark.Continue()

var metrics *responseWriterMetrics
wrappedRes := isuhttpgen.ResponseWriterWrapper(res, func(w http.ResponseWriter) isuhttpgen.ResponseWriter {
rw := newResponseWriterWithMetrics(w)
Expand Down

0 comments on commit 4e1c4a3

Please sign in to comment.