You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ozala#15)
Previously `stringify` was encoding empty arrays inconsistently with node's `querytring` module.
For example `stringify({ foo:'', bar:[], baz: '' }) => 'foo=&&baz='` - note the extra `&`.
By adding a `filter` call to the fragments of the querystring before `join`-ing then these empty strings are removed, and the query string is encoded correctly.
FixesGozala#15
What happens?
When I stringify an object with an empty array, I get a repeated & in the query string output.
What did you expect to happen?
I expected there to not be an extra & in the query string output since it has been patched in Node.js (nodejs/node-v0.x-archive@61ddad1, see nodejs/node-v0.x-archive#7971). Note that in Node.js 0.10, the behavior is consistent.
Thank you for your work and your time, cheers!
The text was updated successfully, but these errors were encountered: