RESTEDClient / RESTED

A REST client for browsers
GNU General Public License v3.0
293 stars 43 forks source link

Multipart POST missing required boundary parameter #198

Open thexa4 opened 3 years ago

thexa4 commented 3 years ago

We encountered an issue where doing a multipart POST resulted in the server not being able to parse the resulting multipart body.

On further examination we figured out that this happened due to the Content-Type that is set automatically when you switch the body type to Multipart form data is missing the boundary parameter. (multipart/form-data instead of multipart/form-data; boundary=------border)

The RFC seems to indicate that this parameter is required when using this Content-Type: https://tools.ietf.org/html/rfc7578#section-8