We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a004403 commit 98f86dfCopy full SHA for 98f86df
engine/fasthttp/request.go
@@ -120,8 +120,12 @@ func (r *Request) FormParams() (params map[string][]string) {
120
121
if err == fasthttp.ErrNoMultipartForm {
122
r.PostArgs().VisitAll(func(k, v []byte) {
123
- // TODO: Filling with only first value
124
- params[string(k)] = []string{string(v)}
+ key := string(k)
+ if _, ok := params[key]; ok {
125
+ params[key] = append(params[key], string(v))
126
+ } else {
127
+ params[string(k)] = []string{string(v)}
128
+ }
129
})
130
} else if err == nil {
131
for k, v := range mf.Value {
0 commit comments