Skip to content

Commit

Permalink
Add missing content-type header when sending formdata
Browse files Browse the repository at this point in the history
  • Loading branch information
asein-sinch committed Dec 12, 2024
1 parent b7c45c7 commit ad641e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/fax/src/rest/v3/faxes/faxes-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export class FaxesApi extends FaxDomainApi {
headers['Content-Type'] = 'application/json';
body = JSON.stringify(data['sendFaxRequestBody']);
} else {
headers['Content-Type'] = 'multipart/form-data';
const formData = new FormData();
let requestData;
if (Array.isArray(data.sendFaxRequestBody.to)) {
Expand Down

0 comments on commit ad641e9

Please sign in to comment.