Skip to content

Commit ea8deb0

Browse files
committed
fix: solved nil dereference on child routers
1 parent b759128 commit ea8deb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http/route/router.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ func (r *Router) NewRouter(
441441
fullPath: fullPath,
442442
method: method,
443443
mode: r.Mode(),
444+
handler: r.handler,
444445
}
445446

446447
// Add the new router to the parent router

0 commit comments

Comments
 (0)