mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Fixed query params composing; (#5018)
* Fixes #4999; * Added regression test;
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import assert from 'assert';
|
||||
import axios from '../../../index.js';
|
||||
|
||||
describe('issues', function () {
|
||||
describe('4999', function () {
|
||||
it('should not fail with query parsing', async function () {
|
||||
const {data} = await axios.get('https://postman-echo.com/get?foo1=bar1&foo2=bar2');
|
||||
|
||||
assert.strictEqual(data.args.foo1, 'bar1');
|
||||
assert.strictEqual(data.args.foo2, 'bar2');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user