We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef595e commit 854d482Copy full SHA for 854d482
mux.go
@@ -87,10 +87,10 @@ func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
87
setCurrentRoute(req, match.Route)
88
}
89
if handler == nil {
90
- if r.NotFoundHandler == nil {
91
- r.NotFoundHandler = http.NotFoundHandler()
92
- }
93
handler = r.NotFoundHandler
+ if handler == nil {
+ handler = http.NotFoundHandler()
+ }
94
95
if !r.KeepContext {
96
defer context.Clear(req)
0 commit comments