Skip to content

Commit

Permalink
Allow null indexes on formSerializer and paramsSerializer (#4960)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people committed Sep 29, 2022
1 parent 05338f4 commit 58ec93a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/typescript/axios.ts
Expand Up @@ -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

Expand Down

0 comments on commit 58ec93a

Please sign in to comment.