mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
don’t escape square brackets
This commit is contained in:
@@ -30,7 +30,7 @@ describe('helpers::buildUrl', function () {
|
||||
it('should support array params', function () {
|
||||
expect(buildUrl('/foo', {
|
||||
foo: ['bar', 'baz']
|
||||
})).toEqual('/foo?foo%5B%5D=bar&foo%5B%5D=baz');
|
||||
})).toEqual('/foo?foo[]=bar&foo[]=baz');
|
||||
});
|
||||
|
||||
it('should support special char params', function () {
|
||||
|
||||
Reference in New Issue
Block a user