From f898e387a9fb84469b008cd79850c6ec2eed3a41 Mon Sep 17 00:00:00 2001 From: "Yasser A.Idrissi" Date: Tue, 15 Jun 2021 07:36:48 +0100 Subject: [PATCH] feat(mime): make createPart of MultipartWriter public (#960) --- mime/multipart.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mime/multipart.ts b/mime/multipart.ts index c30b38ed1..66bec2fd9 100644 --- a/mime/multipart.ts +++ b/mime/multipart.ts @@ -581,7 +581,7 @@ export class MultipartWriter { return `multipart/form-data; boundary=${this.boundary}`; } - private createPart(headers: Headers): Deno.Writer { + createPart(headers: Headers): Deno.Writer { if (this.isClosed) { throw new Error("multipart: writer is closed"); } @@ -598,7 +598,10 @@ export class MultipartWriter { return part; } - createFormFile(field: string, filename: string): Deno.Writer { + createFormFile( + field: string, + filename: string, + ): Deno.Writer { const h = new Headers(); h.set( "Content-Disposition",