Skip to content

Commit

Permalink
handler: use values length to preallocate
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Oct 15, 2017
1 parent 31a6ded commit f1c10e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func getFromForm(values url.Values) *RequestOptions {
query := values.Get("query")
if query != "" {
// get variables map
variables := make(map[string]interface{})
variables := make(map[string]interface{}, len(values))
variablesStr := values.Get("variables")
json.Unmarshal([]byte(variablesStr), &variables)

Expand Down

0 comments on commit f1c10e5

Please sign in to comment.