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

Do you support formData ? #5

Closed
darkyen opened this issue Dec 18, 2014 · 2 comments
Closed

Do you support formData ? #5

darkyen opened this issue Dec 18, 2014 · 2 comments

Comments

@darkyen
Copy link

darkyen commented Dec 18, 2014

Asking cause browser-request doesnt.

@ForbesLindesay
Copy link
Member

Using a FormData object as the body option would work fine in the browser. Currently the only way to do it in node.js would be to set the appropriate headers and body manually.

We could use something like FormData in the browser and https://www.npmjs.com/package/form-data on the server to add a form option that would be analogous to the JSON option. I'd be happy to accept a pull request.

ForbesLindesay added a commit that referenced this issue Oct 23, 2015
This lets you pass a
[form-data](https://github.com/form-data/form-data) object as the
`body` argument.

[closes #13]
[closes #5]
@ForbesLindesay
Copy link
Member

Form support does now exist

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 a pull request may close this issue.

2 participants