@edraj/tsdmart 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dmart.service.ts +2 -2
- package/package.json +1 -1
package/dmart.service.ts
CHANGED
|
@@ -422,13 +422,13 @@ export class Dmart {
|
|
|
422
422
|
form_data.append("request_record", request_record);
|
|
423
423
|
form_data.append("payload_file", request.payload_file);
|
|
424
424
|
|
|
425
|
-
const
|
|
425
|
+
const _headers = {...headers, "Content-Type": "multipart/form-data"};
|
|
426
426
|
|
|
427
427
|
try {
|
|
428
428
|
const {data} = await Dmart.axiosDmartInstance.post<ApiResponse>(
|
|
429
429
|
`${scope}/resource_with_payload`,
|
|
430
430
|
form_data,
|
|
431
|
-
{headers}
|
|
431
|
+
{headers: _headers}
|
|
432
432
|
);
|
|
433
433
|
|
|
434
434
|
return data;
|