Skip to content

Commit fae9b6c

Browse files
committed
Fix bug in response to http.Handler
1 parent 0befa26 commit fae9b6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

router/rule.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ func (r *Rule) Run(request *context.Request) (result interface{}) {
9292
if len(out) > 0 {
9393
result = out[0].Interface()
9494
}
95+
default:
96+
result = r.handler
9597
}
9698

9799
return

0 commit comments

Comments
 (0)