Skip to content

Commit

Permalink
router: clarify when the matched route path is saved
Browse files Browse the repository at this point in the history
  • Loading branch information
julienschmidt committed Jan 12, 2020
1 parent 6772d74 commit cfba780
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion router.go
Expand Up @@ -150,7 +150,9 @@ type Router struct {
maxParams uint16

// SaveMatchedRoutePathToContext when enabled adds the matched route path
// onto the http.Request context before invoking the handler
// onto the http.Request context before invoking the handler.
// The matched route path is only added to handlers of routes that were
// registered when this option was enabled.
SaveMatchedRoutePathToContext bool

// Enables automatic redirection if the current route can't be matched but a
Expand Down

0 comments on commit cfba780

Please sign in to comment.