Skip to content

engine.fasthttp#FormParams function can not receive HTML array parameters #555

@weisd

Description

@weisd

engine.fasthttp#FormParams function can not receive HTML array parameters

I post thr form like:

<form action="/handler" method="post">
    <input name="test[]" value="test1">
    <input name="test[]" value="test2">
    <button type="submit">submit</button>
</form>

but only get one value

e.Post("/form", func(c echo.Context) error {
        return c.String(http.StatusOK, fmt.Sprintf("%v", c.FormParams()))
    })

engine.fasthttp output:

map[test[]:[test2]]

engine.standard output:

map[test[]:[test1 test2]]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions