Skip to content

Commit d1014a9

Browse files
committed
no need to check client again
1 parent 050b02f commit d1014a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/astro/src/server/middleware.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,10 @@ function getParametrizedRoute(
437437

438438
function injectMetaTagsInResponse(originalResponse: Response, metaTagsStr: string): Response {
439439
try {
440-
const client = getClient();
441440
const contentType = originalResponse.headers.get('content-type');
442441

443442
const isPageloadRequest = contentType?.startsWith('text/html');
444-
if (!isPageloadRequest || !client) {
443+
if (!isPageloadRequest) {
445444
return originalResponse;
446445
}
447446

0 commit comments

Comments
 (0)