Loading src/lib/MultipartMixed.ts +1 −4 Original line number Diff line number Diff line Loading @@ -18,10 +18,7 @@ export class MultipartMixed { } send(res: Express.Response) { res.setHeader( "Content-Type", `multipart/mixed; boundary="${this.boundary}"` ); res.setHeader("Content-Type", `multipart/mixed; boundary=${this.boundary}`); // send buffer directly to avoid express modifying headers // @see https://github.com/expressjs/express/issues/2654 res.send(Buffer.from(this.toString())); Loading Loading
src/lib/MultipartMixed.ts +1 −4 Original line number Diff line number Diff line Loading @@ -18,10 +18,7 @@ export class MultipartMixed { } send(res: Express.Response) { res.setHeader( "Content-Type", `multipart/mixed; boundary="${this.boundary}"` ); res.setHeader("Content-Type", `multipart/mixed; boundary=${this.boundary}`); // send buffer directly to avoid express modifying headers // @see https://github.com/expressjs/express/issues/2654 res.send(Buffer.from(this.toString())); Loading