diff --git a/packages/astro/src/core/app/node.ts b/packages/astro/src/core/app/node.ts index 7097db967..6bd2677a7 100644 --- a/packages/astro/src/core/app/node.ts +++ b/packages/astro/src/core/app/node.ts @@ -14,7 +14,7 @@ function createRequestFromNodeRequest(req: NodeIncomingMessage, body?: Uint8Arra req.socket instanceof TLSSocket || req.headers['x-forwarded-proto'] === 'https' ? 'https' : 'http'; - const hostname = req.headers.host || req.headers[':authority']; + const hostname = req.headers.host || req.headers[':authority']; const url = `${protocol}://${hostname}${req.url}`; const rawHeaders = req.headers as Record; const entries = Object.entries(rawHeaders);