Skip to content

Commit

Permalink
removed has
Browse files Browse the repository at this point in the history
  • Loading branch information
deo986 committed Apr 22, 2022
1 parent 31fb533 commit f3d8367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func setFields(ctx *hcontext, req *http.Request, input reflect.Value, t reflect.
location = locationQuery
if v := req.URL.Query().Get(name); v != "" {
pv = v
} else if req.URL.Query().Has(name) && f.Type.Kind() == reflect.Bool {
} else if f.Type.Kind() == reflect.Bool {
// name has no associated value, but exists in the map of QueryParams. This is a boolean value
_, vok := req.URL.Query()[name]
if vok {
Expand Down

0 comments on commit f3d8367

Please sign in to comment.