Skip to content

Commit

Permalink
Merge branch 'master' into jsontag
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy authored Jul 18, 2017
2 parents 4e17ca2 + 7180f2b commit a02cad6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ func (c *Context) QueryArray(key string) []string {
// GetQueryArray returns a slice of strings for a given query key, plus
// a boolean value whether at least one value exists for the given key.
func (c *Context) GetQueryArray(key string) ([]string, bool) {
req := c.Request
if values, ok := req.URL.Query()[key]; ok && len(values) > 0 {
if values, ok := c.Request.URL.Query()[key]; ok && len(values) > 0 {
return values, true
}
return []string{}, false
Expand Down

0 comments on commit a02cad6

Please sign in to comment.