use url.URL.Query instead of parsing query (#2063)

This commit is contained in:
Santhosh Kumar 2019-09-24 07:31:57 +05:30 committed by thinkerou
parent f45c83c70c
commit 2e5a7196cc

View File

@ -393,8 +393,7 @@ func (c *Context) QueryArray(key string) []string {
func (c *Context) getQueryCache() {
if c.queryCache == nil {
c.queryCache = make(url.Values)
c.queryCache, _ = url.ParseQuery(c.Request.URL.RawQuery)
c.queryCache = c.Request.URL.Query()
}
}