diff options
Diffstat (limited to 'std/http/io.ts')
-rw-r--r-- | std/http/io.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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); |