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
paramsSerializer is not working in v0.28.0 #6262
Comments
any workaround for this? |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Although there's a backport in #6227, in v0.28.0, the serializer isn't working as expected. This is because the v0.28.0 version of
buildUrl
(code) is simply only takingoptions.encode
, not takingoptions.serializer
into account:axios/lib/helpers/buildURL.js
Lines 36 to 44 in ce46346
This seems to be a refactor to match the v1.x version, because in v0.27.2 at least (code), it takes the
paramSerializer
function into account:axios/lib/helpers/buildURL.js
Lines 28 to 30 in bc733fe
In order for #6227 to actually work, there needs to be a backport similar to #5113 towards v0.x
To Reproduce
paramsSerializer
functionCode snippet
Expected behavior
The parameters should be serialized, but it didn't
Axios Version
v0.28.0
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: