Skip to content

Commit

Permalink
feat(mime): make createPart of MultipartWriter public (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
getspooky authored Jun 15, 2021
1 parent 810667d commit f898e38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mime/multipart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand All @@ -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",
Expand Down

0 comments on commit f898e38

Please sign in to comment.