Skip to content

Commit

Permalink
Encode attachment download as binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Jul 25, 2022
1 parent 92d19e0 commit 9680885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mailosaurCommands.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ declare global {
* The identifier for the required attachment.
*/
attachmentId: string
): Cypress.Chainable<Attachment>;
): Cypress.Chainable<unknown>;

/**
* Downloads an EML file representing the specified email.
Expand Down
2 changes: 1 addition & 1 deletion src/mailosaurCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class MailosaurCommands {
}

mailosaurDownloadAttachment(attachmentId) {
return this.request.get(`api/files/attachments/${attachmentId}`);
return this.request.get(`api/files/attachments/${attachmentId}`, { encoding: 'binary' });
}

mailosaurDownloadMessage(messageId) {
Expand Down

0 comments on commit 9680885

Please sign in to comment.