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

Queries with array parameters doesn't work #474

Open
Zn4rK opened this issue Sep 2, 2022 · 1 comment · May be fixed by #475
Open

Queries with array parameters doesn't work #474

Zn4rK opened this issue Sep 2, 2022 · 1 comment · May be fixed by #475

Comments

@Zn4rK
Copy link

Zn4rK commented Sep 2, 2022

Describe the bug
Queries with query parameters that are array based doesn't work.

It boils down to this line:

if (param.style === 'form' && typeof args[saneParamName] === 'object') {

An array is also considered an object in JavaScript. The if statement needs to be flipped.

@Zn4rK Zn4rK linked a pull request Sep 2, 2022 that will close this issue
@Zn4rK
Copy link
Author

Zn4rK commented Sep 4, 2022

The queryString parts of that library should probably be handled by https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams as well.

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 a pull request may close this issue.

1 participant