Skip to content

Commit d4e4136

Browse files
authored
Revert "fix(uri): query binding bug (#3236)" (#3899)
This reverts commit 8790d08.
1 parent 8790d08 commit d4e4136

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

binding/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ func (queryBinding) Name() string {
1212
return "query"
1313
}
1414

15-
func (q queryBinding) Bind(req *http.Request, obj any) error {
15+
func (queryBinding) Bind(req *http.Request, obj any) error {
1616
values := req.URL.Query()
17-
if err := mapFormByTag(obj, values, q.Name()); err != nil {
17+
if err := mapForm(obj, values); err != nil {
1818
return err
1919
}
2020
return validate(obj)

binding/query_test.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)