-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
Parsing of arrayFormat: 'comma'
not working for queries of single value with comma
#296
Comments
@sindresorhus @Richienb This is also causing issues on our side ? Any timeline for this fix ? |
// @mishugana |
@sindresorhus @mishugana any update on this ? |
The current One solution might be an option to encode array-ness into the parameter key during |
The workaround from #211 solved this problem for me. |
This line is causing the problem: https://github.com/sindresorhus/query-string/blob/main/index.js#L177 In order for this to be fixed in a backwards compatible fashion an option would need to be introduced that allows prevention of the use of 'encoded arrays'. |
|
Say we have an Object we are stringifying to become a query param of the following shape (notice the comma in the value)
(Expected)
Work around (?)
This bug only occurs when there is a single value. So say if we run the same step as above with this object instead:
The text was updated successfully, but these errors were encountered: