From a878e0fb3fbc83197819d97c23d8868c3e692263 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Mon, 3 Apr 2023 03:10:45 +0200 Subject: [PATCH] fix: boh altri dettagli --- server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.ts b/server.ts index cb261d3..2ef5f4a 100644 --- a/server.ts +++ b/server.ts @@ -45,7 +45,7 @@ async function createDevRouter(db: DatabaseConnection) { const { html, metadata, asyncCallbacks } = render(req.originalUrl, db) await Promise.all(asyncCallbacks.map(fn => fn())) - const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}` + const fullUrl = `https://${req.get('host')}${req.originalUrl}` const metaTagsHtml = '' + (metadata.title ? `\n` : '') + @@ -80,7 +80,7 @@ async function createProductionRouter(db: DatabaseConnection) { const { html, metadata, asyncCallbacks } = render(req.originalUrl, db) await Promise.all(asyncCallbacks.map(fn => fn())) - const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}` + const fullUrl = `https://${req.get('host')}${req.originalUrl}` const metaTagsHtml = '' + (metadata.title