mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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: { foo: 'bar' } });
|
||||||
axios.create({ headers: { common: { foo: 'bar' } } });
|
axios.create({ headers: { common: { foo: 'bar' } } });
|
||||||
|
axios.create({
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
|
formSerializer: {
|
||||||
|
indexes: null,
|
||||||
|
},
|
||||||
|
paramsSerializer: {
|
||||||
|
indexes: null,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
// Interceptors
|
// Interceptors
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user