Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipart allow body === '' ( the empty string ) #255

Merged
merged 1 commit into from
Jun 4, 2012
Merged

multipart allow body === '' ( the empty string ) #255

merged 1 commit into from
Jun 4, 2012

Conversation

Filirom1
Copy link
Contributor

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--

mikeal added a commit that referenced this pull request Jun 4, 2012
multipart allow body === '' ( the empty string )
@mikeal mikeal merged commit 4c91de3 into request:master Jun 4, 2012
naholyr added a commit to naholyr/doggybag that referenced this pull request Jun 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants