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

Casts anything but buffers and streams to strings on appends. #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DylanPiercey
Copy link
Member

@DylanPiercey DylanPiercey commented Jul 15, 2017

This is another browser parity patch and is a breaking 3.x change.
It allows the module to work the same as the browser when it receives unknown types (anything but buffers and streams) and automatically casts them as a string.

Currently there is the open issue #137 and several similar issues that were closed as duplicates (for things like null, undefined, and objects).


This probably needs more discussion and tests.

@coveralls
Copy link

coveralls commented Jul 15, 2017

Coverage Status

Coverage decreased (-2.6%) to 95.431% when pulling bbd1d56 on DylanPiercey:dom-parity-cast-string into 9bfb102 on form-data:master.

@jimmywarting
Copy link

jimmywarting commented Nov 9, 2017

I think this is more like how the browser dose it also. And it's what I implemented in my FormData polyfill for the browser

@danielgindi
Copy link

I would love this getting merged!

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

4 participants