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

Update request.js documentation #137

Merged
merged 1 commit into from
Jan 14, 2017
Merged

Update request.js documentation #137

merged 1 commit into from
Jan 14, 2017

Conversation

ZackWard
Copy link
Contributor

This clarifies how to send form data. .field() works for multi-part forms, but according to the SuperAgent documentation .send() should be used to send the post data as application/x-www-form-urlencoded. This addresses issue #86. There is an older pull request by @BenAychh, but it modified the README.md file directly. According to the discussion, the README.md file is generated based on request.js, and so the documentation should be modified here.

This clarifies how to send form data. `.field()` works for multi-part forms, but according to the [SuperAgent documentation](https://visionmedia.github.io/superagent/#post-/-put-requests) `.send()` should be used to send the post data as `application/x-www-form-urlencoded`. This addresses issue #86. There is an older pull request by @BenAychh, but it modified the README.md file directly. According to the discussion, the README.md file is generated based on request.js, and so the documentation should be modified here.
@keithamus keithamus merged commit df41921 into chaijs:master Jan 14, 2017
@keithamus
Copy link
Member

Great work @ZackWard! Thanks for this!

@ZackWard ZackWard deleted the ZackWard-doc-patch branch May 5, 2017 00:15
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