We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you send an array as a parameter in a GET request, redaxios turns that into a string separated by commas. This seems like a bug.
redaxios
On the server-side (ie: PHP) we would expect that to be provided as an array, but it ends up being a string.
In axios this is correctly kept as an array.
axios
The text was updated successfully, but these errors were encountered:
Got the same behaviour in my local laptop:
redaxios.get("some-url", { params: { names: ["name-1", "name-2"], }, });
On the backend, we got:
// redaxios { names: 'name-1,name-2' } // axios { names: ["name-1", "name-2"] }
Is this sth expected? Happy to work on it if this is confirmed to be a bug!
Sorry, something went wrong.
No branches or pull requests
If you send an array as a parameter in a GET request,
redaxios
turns that into a string separated by commas. This seems like a bug.On the server-side (ie: PHP) we would expect that to be provided as an array, but it ends up being a string.
In
axios
this is correctly kept as an array.The text was updated successfully, but these errors were encountered: