Explorar o código

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

Santhosh Kumar %!s(int64=6) %!d(string=hai) anos
pai
achega
2e5a7196cc
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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()
 	}
 }