Skip to content

Commit

Permalink
Revert "fix(uri): query binding bug (#3236)" (#3899)
Browse files Browse the repository at this point in the history
This reverts commit 8790d08.
  • Loading branch information
appleboy committed Mar 22, 2024
1 parent 8790d08 commit d4e4136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
4 changes: 2 additions & 2 deletions binding/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ func (queryBinding) Name() string {
return "query"
}

func (q queryBinding) Bind(req *http.Request, obj any) error {
func (queryBinding) Bind(req *http.Request, obj any) error {
values := req.URL.Query()
if err := mapFormByTag(obj, values, q.Name()); err != nil {
if err := mapForm(obj, values); err != nil {
return err
}
return validate(obj)
Expand Down
23 changes: 0 additions & 23 deletions binding/query_test.go

This file was deleted.

0 comments on commit d4e4136

Please sign in to comment.