formidable
formidable copied to clipboard
Formidable things that a multipart/form-data request is JSON if the boundary contains the string "json"
Support plan
- Which support plan is this issue covered by? (Community, Sponsor, Enterprise): Community, I'll submit a PR
- Currently blocking your project/work? (yes/no): yes
- Affecting a production system? (yes/no): no
Context
- Node.js version: latest
- Release Line of Formidable (Legacy, Current, Next): next
- Formidable exact version: 3.5.4
- Environment (node, browser, native, OS): node
- Used with (popular names of modules):
What are you trying to achieve or the steps to reproduce?
I'm parsing a request that has this content-type:
Content-Type: multipart/form-data; boundary=--uj05Dyqd7Fd5aqAJnK1j9WeJSONmNy5vSGbM1oLf
What was the result you got?
Formidable thinks it's JSON
What result did you expect?
It should be parsed as multipart/form-data
@nicolo-ribaudo haha, good catch. yeah, we should check just anything up to the ;