diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2020-04-27 01:56:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 16:26:02 -0400 |
commit | 4f9bb11444ba7236f28ef1e722100b485c185c7c (patch) | |
tree | 9b5b19bcaf1a440166c7ecf814a65fb343343628 /std/mime | |
parent | 26dfd3c110ced12f2bd374de391c2c05e24290d8 (diff) |
reorder copyN arguments to match Deno.copy (#4900)
Diffstat (limited to 'std/mime')
-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 709752290..027854dae 100644 --- a/std/mime/multipart.ts +++ b/std/mime/multipart.ts @@ -297,7 +297,7 @@ export class MultipartReader { buf.reset(); if (!p.fileName) { // value - const n = await copyN(buf, p, maxValueBytes); + const n = await copyN(p, buf, maxValueBytes); maxValueBytes -= n; if (maxValueBytes < 0) { throw new RangeError("message too large"); @@ -320,8 +320,8 @@ export class MultipartReader { }); try { const size = await copyN( - file, new MultiReader(buf, p), + file, maxValueBytes ); file.close(); |