feat(mime): make createPart of MultipartWriter public (#960)

This commit is contained in:
Yasser A.Idrissi 2021-06-15 07:36:48 +01:00 committed by GitHub
parent 810667defc
commit f898e387a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",