-
Notifications
You must be signed in to change notification settings - Fork 96
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
Bug with url.format and object contain array #65
Comments
I get an empty string in node for |
I have the same issue @binggo8322 You can see both versions have different output on the browser -
Output is -
When we run this as a test on Cli it gives the identical results on both versions that is -
|
@irfanhanfi ah ok, with that full example, in latest node, all the way down to node 0.5, i get |
Hello,
In the new version 0.11.1, the lib qs replace querystring, but it is not the same.
localVarUrlObj = {message:['value1','value2']}
0.11.0
url.format(localVarUrlObj) => message=value1&message=value2
0.11.1
url.format(localVarUrlObj) => message%5B0%5D=value1&message%5B1%5D=value2
qs use a option for the Array decode:
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
// 'a=b&a=c'
The text was updated successfully, but these errors were encountered: