2
0
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:
Willian Agostini
2022-09-29 03:18:35 -03:00
committed by GitHub
parent 05338f4454
commit 58ec93a95e
+11
View File
@@ -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