mikeal/request — pull request #255 by Filirom1 (2012-05-16 16:00:27+00:00)
Title: multipart allow body === '' ( the empty string )

Hi

When sending POST request, with empty fields (multipart/form-data), `request` fails with the message `Body attribute missing in multipart.`.

`body === null` and `body === undefined` should be avoided,
but not `body === 0` or `body === ""`

Here is a dump of what I want to send (done with chrome) :

------WebKitFormBoundaryya1smvvViLvINIOb

Content-Disposition: form-data; name="title"

------WebKitFormBoundaryya1smvvViLvINIOb

Content-Disposition: form-data; name="upload"; filename=""

Content-Type: application/octet-stream

------WebKitFormBoundaryya1smvvViLvINIOb--