From 2d5fef06b891c971b14aa6f71ca5ab6c03a36e0e Mon Sep 17 00:00:00 2001 From: Chris Dostert Date: Wed, 8 Nov 2017 19:54:02 -0800 Subject: [PATCH] [docs] fix outdated UseEncodedPath method docs (#314) https://github.com/gorilla/mux/pull/306 changed UseEncodedPath to use native go encoded path handling so cautions in it's docs are no longer applicable. --- mux.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mux.go b/mux.go index 49de789..9aec0fa 100644 --- a/mux.go +++ b/mux.go @@ -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"