Skip to content

net/http: make Request.Form.Get call ParseForm automatically #24338

Closed
@Trion129

Description

@Trion129

req.ParseForm() is needed to be called before accessing the form parameters using param := req.Form.Get("param-name") where req is a http.Request

Is there a reason behind this?
I would like to add a feature to ParseForm automatically from Form.Get() on first execution and on next calls, check if Form is already parsed and work as usual.
What are your thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions