Skip to content

Commit 1cf0d25

Browse files
authored
update: ctx.BodyParser (#316)
* update: ctx.BodyParser * Update ctx.go fmt file
1 parent 029e3a9 commit 1cf0d25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (ctx *Ctx) BodyParser(out interface{}) error {
287287
if ctx.Fasthttp.QueryArgs().Len() > 0 {
288288
data := make(map[string][]string)
289289
ctx.Fasthttp.QueryArgs().VisitAll(func(key []byte, val []byte) {
290-
data[getString(key)] = []string{getString(val)}
290+
data[getString(key)] = append(data[getString(key)], getString(val))
291291
})
292292
return schemaDecoderQuery.Decode(out, data)
293293
}

0 commit comments

Comments
 (0)