We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c0250 commit bd0f08cCopy full SHA for bd0f08c
packages/astro/src/server/middleware.ts
@@ -199,10 +199,8 @@ async function instrumentRequest(
199
}
200
201
202
- const reportedBody = bodyReporter();
203
-
204
try {
205
- for await (const chunk of reportedBody) {
+ for await (const chunk of bodyReporter()) {
206
const html = typeof chunk === 'string' ? chunk : decoder.decode(chunk, { stream: true });
207
const modifiedHtml = addMetaTagToHead(html);
208
controller.enqueue(new TextEncoder().encode(modifiedHtml));
0 commit comments