axios / axios-docs

Official documentation for the axios HTTP library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request Configuration Docs are incorrect post v1

drusellers opened this issue · 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'})
    }
},

Please add hacktoberfest label to this issue