use url.URL.Query instead of parsing query

This commit is contained in:
Santhosh 2019-09-19 17:50:27 +05:30
parent 502c898d75
commit 1518baebaf

View File

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