axios-docs icon indicating copy to clipboard operation
axios-docs copied to clipboard

Request Configuration Docs are incorrect post v1

Open drusellers opened this issue 2 years ago • 1 comments

https://github.com/axios/axios-docs/blob/master/posts/en/req_config.md?plain=1#L56

Describe the bug

The documentation currently states that paramsSerialization is ...

paramsSerializer: function (params) {
    return Qs.stringify(params, {arrayFormat: 'brackets'})
},

However, after upgrading the correct configuration is ...

paramsSerializer: {
    encode: function(params) {
        return Qs.stringify(params, {arrayFormat: 'brackets'})
    }
},

drusellers avatar Oct 07 '22 19:10 drusellers

Please add hacktoberfest label to this issue

ShivamJha2436 avatar Oct 07 '23 05:10 ShivamJha2436