From 58ec93a95eb6d4ed207a630023b9dddf5e270fbe Mon Sep 17 00:00:00 2001 From: Willian Agostini Date: Thu, 29 Sep 2022 03:18:35 -0300 Subject: [PATCH] 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 Co-authored-by: Jay --- test/typescript/axios.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/typescript/axios.ts b/test/typescript/axios.ts index 785903d3b2..9b300baa68 100644 --- a/test/typescript/axios.ts +++ b/test/typescript/axios.ts @@ -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