1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 09:24:35 +00:00

fix: not to use NodeFormData function on web

This commit is contained in:
Saad Jutt
2022-02-22 17:06:27 +05:00
parent af4ad3a7af
commit 872e73b5f0

View File

@@ -151,7 +151,7 @@ export class WebJobExecutor extends BaseJobExecutor {
/* The NodeFormData object does not set the request header - so, set it */
const contentType =
formData instanceof NodeFormData
formData instanceof NodeFormData && typeof FormData === 'undefined'
? `multipart/form-data; boundary=${formData.getBoundary()}`
: undefined