Skip to content

Commit

Permalink
[docs] fix outdated UseEncodedPath method docs (#314)
Browse files Browse the repository at this point in the history
#306 changed UseEncodedPath to use native go encoded path handling so cautions in it's docs are no longer applicable.
  • Loading branch information
chrisdostert authored and elithrar committed Nov 9, 2017
1 parent 7f08801 commit 2d5fef0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ func (r *Router) SkipClean(value bool) *Router {
// UseEncodedPath tells the router to match the encoded original path
// to the routes.
// For eg. "/path/foo%2Fbar/to" will match the path "/path/{var}/to".
// This behavior has the drawback of needing to match routes against
// r.RequestURI instead of r.URL.Path. Any modifications (such as http.StripPrefix)
// to r.URL.Path will not affect routing when this flag is on and thus may
// induce unintended behavior.
//
// If not called, the router will match the unencoded path to the routes.
// For eg. "/path/foo%2Fbar/to" will match the path "/path/foo/bar/to"
Expand Down

0 comments on commit 2d5fef0

Please # to comment.