From f3e01f6c266816f1037d20aa93396d49c96a4b18 Mon Sep 17 00:00:00 2001 From: matthewp Date: Fri, 24 Jun 2022 21:00:16 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/response.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/runtime/server/response.ts b/packages/astro/src/runtime/server/response.ts index 1369f3f05e..1e92c47ba4 100644 --- a/packages/astro/src/runtime/server/response.ts +++ b/packages/astro/src/runtime/server/response.ts @@ -23,7 +23,7 @@ function createResponseClass() { let decoder = new TextDecoder(); let body = this.#body as AsyncIterable; let out = ''; - for await(let chunk of body) { + for await (let chunk of body) { out += decoder.decode(chunk); } return out; @@ -35,7 +35,7 @@ function createResponseClass() { if (this.#isStream && isNodeJS) { let body = this.#body as AsyncIterable; let chunks: number[] = []; - for await(let chunk of body) { + for await (let chunk of body) { chunks.push(...chunk); } return Uint8Array.from(chunks);