2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix(headers): fixed support for setting multiple header values from an iterated source; (#6885)

This commit is contained in:
Dmitriy Mozgovoy
2025-04-23 19:24:08 +03:00
committed by GitHub
parent e61a8934d8
commit f7a3b5e0f7
4 changed files with 55 additions and 7 deletions
+9 -6
View File
@@ -1,13 +1,16 @@
import {retryNetwork} from "../helpers/retry.js";
describe('FormData', function() {
it('should allow FormData posting', function () {
return axios.postForm('http://httpbin.org/post', {
a: 'foo',
b: 'bar'
}).then(({data}) => {
expect(data.form).toEqual({
it('should allow FormData posting', async () => {
await retryNetwork(() => {
return axios.postForm('http://httpbin.org/post', {
a: 'foo',
b: 'bar'
}).then(({data}) => {
expect(data.form).toEqual({
a: 'foo',
b: 'bar'
});
});
});
});