diff options
author | 2022-06-24 21:00:16 +0000 | |
---|---|---|
committer | 2022-06-24 21:00:16 +0000 | |
commit | f3e01f6c266816f1037d20aa93396d49c96a4b18 (patch) | |
tree | b8a4321c8ab4ef97f0d7098e05fd9934cc7b37e6 | |
parent | b5e3403fa151710be4837f6ad265d836adb08025 (diff) | |
download | astro-f3e01f6c266816f1037d20aa93396d49c96a4b18.tar.gz astro-f3e01f6c266816f1037d20aa93396d49c96a4b18.tar.zst astro-f3e01f6c266816f1037d20aa93396d49c96a4b18.zip |
[ci] format
-rw-r--r-- | packages/astro/src/runtime/server/response.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/runtime/server/response.ts b/packages/astro/src/runtime/server/response.ts index 1369f3f05..1e92c47ba 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<Uint8Array>; 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<Uint8Array>; let chunks: number[] = []; - for await(let chunk of body) { + for await (let chunk of body) { chunks.push(...chunk); } return Uint8Array.from(chunks); |