Skip to content

net/http: support multipart/mixed in Request.MultipartReader() #23959

Closed
@OneOfOne

Description

@OneOfOne

What did you do?

Ran https://play.golang.org/p/uW3bq_3Z6Ym then in the terminal:

➤ curl -v -i -X POST -H "Content-Type: multipart/mixed" -F "blob=@/tmp/blah.go" -F "metadata={\"something\":123456789};type=application/json" http://localhost:1222/bad -v

What did you expect to see?

No errors from req.MultipartReader()

What did you see instead?

request Content-Type isn't multipart/form-data

If this feature request is accepted, I'd gladly submit a PR to fix it, testing locally the change doesn't have any side effect on current code that expects multipart/form-data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions