buaazp / fasthttprouter

A high performance fasthttp request router that scales well
http://godoc.org/github.com/buaazp/fasthttprouter
BSD 3-Clause "New" or "Revised" License
872 stars 91 forks source link

feature: Add query args in uri while doing auto-correcting redirection #11

Closed eaglerayp closed 8 years ago

eaglerayp commented 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.

buaazp commented 8 years ago

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.