fix(now including right headers): update

This commit is contained in:
Philipp Kunz 2018-07-20 00:04:37 +02:00
parent 6f865a356f
commit 20dc3c9230

View File

@ -57,7 +57,13 @@ export const postFormData = async (
const pipeLog: any = async (...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
const response = await request(urlArg, requestOptions);