summaryrefslogtreecommitdiff
path: root/std/mime
diff options
context:
space:
mode:
Diffstat (limited to 'std/mime')
-rw-r--r--std/mime/multipart.ts4
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();