fix(now including right headers): update
This commit is contained in:
parent
6f865a356f
commit
20dc3c9230
@ -57,7 +57,13 @@ export const postFormData = async (
|
|||||||
const pipeLog: any = async (...args) => {
|
const pipeLog: any = async (...args) => {
|
||||||
console.log(args);
|
console.log(args);
|
||||||
};
|
};
|
||||||
const requestOptions = Object.assign({}, optionsArg, { requestBody: form });
|
const requestOptions = Object.assign({}, optionsArg, {
|
||||||
|
headers: {
|
||||||
|
...(optionsArg.headers),
|
||||||
|
...getFormDataHeaders(form)
|
||||||
|
},
|
||||||
|
requestBody: form
|
||||||
|
});
|
||||||
|
|
||||||
// lets fire the actual request for sending the formdata
|
// lets fire the actual request for sending the formdata
|
||||||
const response = await request(urlArg, requestOptions);
|
const response = await request(urlArg, requestOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user