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 050b02f commit d1014a9Copy full SHA for d1014a9
packages/astro/src/server/middleware.ts
@@ -437,11 +437,10 @@ function getParametrizedRoute(
437
438
function injectMetaTagsInResponse(originalResponse: Response, metaTagsStr: string): Response {
439
try {
440
- const client = getClient();
441
const contentType = originalResponse.headers.get('content-type');
442
443
const isPageloadRequest = contentType?.startsWith('text/html');
444
- if (!isPageloadRequest || !client) {
+ if (!isPageloadRequest) {
445
return originalResponse;
446
}
447
0 commit comments