mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
fix: handling of array values for AxiosHeaders (#5085)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -327,5 +327,15 @@ describe('AxiosHeaders', function () {
|
||||
bar: '3'
|
||||
});
|
||||
});
|
||||
|
||||
it('should support array values', function () {
|
||||
const headers = new AxiosHeaders({
|
||||
foo: [1,2,3]
|
||||
});
|
||||
|
||||
assert.deepStrictEqual({...headers.normalize().toJSON()}, {
|
||||
foo: ['1','2','3']
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user