Skip to content

Commit

Permalink
fix: middleware ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Mar 25, 2024
1 parent 81d7826 commit 8f2d403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func UseStd(s *Server, middlewares ...func(http.Handler) http.Handler) {
}

func Use(s *Server, middlewares ...func(http.Handler) http.Handler) {
s.middlewares = append(s.middlewares, middlewares...)
s.middlewares = append(middlewares, s.middlewares...)
}

// Handle registers a standard http handler into the default mux.
Expand Down

0 comments on commit 8f2d403

Please sign in to comment.