浏览代码

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

Santhosh Kumar 6 年之前
父节点
当前提交
2e5a7196cc
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      context.go

+ 1 - 2
context.go

@@ -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()
 	}
 }