mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Allow null indexes on formSerializer and paramsSerializer (#4960)
* test: Failed test Param indexes from formSerializer and paramsSerializer receiving null Closes #4959 * fix: Allow null to indexes in SerializerOptions Closes #4959 Co-authored-by: Willian Agostini <willian.agostini@fleetcor.com.br> Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -269,6 +269,17 @@ instance1.defaults.timeout = 2500;
|
||||
|
||||
axios.create({ headers: { foo: 'bar' } });
|
||||
axios.create({ headers: { common: { foo: 'bar' } } });
|
||||
axios.create({
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
formSerializer: {
|
||||
indexes: null,
|
||||
},
|
||||
paramsSerializer: {
|
||||
indexes: null,
|
||||
},
|
||||
});
|
||||
|
||||
// Interceptors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user