From 0cb1bb98cc2de8dfe51b7adbe992666936146c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 25 Apr 2020 00:09:14 +0200 Subject: BREAKING CHANGE: change order of args in Deno.copy() (#4885) --- std/http/io.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/http') diff --git a/std/http/io.ts b/std/http/io.ts index 37285fdbf..2c2fea48a 100644 --- a/std/http/io.ts +++ b/std/http/io.ts @@ -273,7 +273,7 @@ export async function writeResponse( const contentLength = headers.get("content-length"); assert(contentLength != null); const bodyLength = parseInt(contentLength); - const n = await Deno.copy(writer, r.body); + const n = await Deno.copy(r.body, writer); assert(n === bodyLength); } else { await writeChunkedBody(writer, r.body); -- cgit v1.2.3