diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 00:09:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 00:09:14 +0200 |
commit | 0cb1bb98cc2de8dfe51b7adbe992666936146c90 (patch) | |
tree | a50b84ff268732e9db15895b443638ac86657007 /std/mime/multipart.ts | |
parent | 833539fcafa77f341b74498b37372a61c5f10418 (diff) |
BREAKING CHANGE: change order of args in Deno.copy() (#4885)
Diffstat (limited to 'std/mime/multipart.ts')
-rw-r--r-- | std/mime/multipart.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/mime/multipart.ts b/std/mime/multipart.ts index c46948226..709752290 100644 --- a/std/mime/multipart.ts +++ b/std/mime/multipart.ts @@ -308,7 +308,7 @@ export class MultipartReader { } // file let formFile: FormFile | undefined; - const n = await copy(buf, p); + const n = await copy(p, buf); const contentType = p.headers.get("content-type"); assert(contentType != null, "content-type must be set"); if (n > maxMemory) { @@ -573,7 +573,7 @@ export class MultipartWriter { file: Reader ): Promise<void> { const f = await this.createFormFile(field, filename); - await copy(f, file); + await copy(file, f); } private flush(): Promise<void> { |