Skip to content

Commit

Permalink
Fix: error binder in form_test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi authored Mar 3, 2025
1 parent 9e6f4fd commit 4766b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binder/form_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Benchmark_FormBinder_Bind(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()

binder := &QueryBinding{
binder := &FormBinding{
EnableSplitting: true,
}

Expand All @@ -70,7 +70,7 @@ func Benchmark_FormBinder_Bind(b *testing.B) {
var user User

req := fasthttp.AcquireRequest()
req.URI().SetQueryString("name=john&age=42&posts=post1,post2,post3")
req.SetBodyString("name=john&age=42&posts=post1,post2,post3")
req.Header.SetContentType("application/x-www-form-urlencoded")

b.ResetTimer()
Expand Down

0 comments on commit 4766b86

Please sign in to comment.