Closed eaglerayp closed 8 years ago
Hi, this PR brings the query args to the full uri for redirection when we trying to auto-correct the request path.
For example, a capitalization errors will make the query args disappeared.
r.GET("/1/ping", PingHandler)
/ping?a=1
/piNg?a=1
/ping
That is indeed a bug. And I have merged your commit into master branch now.
Thanks a lot for your work. And I found the bug is also exists in httprouter itself.
httprouter
Hi, this PR brings the query args to the full uri for redirection when we trying to auto-correct the request path.
For example, a capitalization errors will make the query args disappeared.
r.GET("/1/ping", PingHandler)
/ping?a=1
/piNg?a=1
--> auto correcting:/ping
original request uri:
/piNg?a=1
--> auto correcting:/ping?a=1