From 50cd2a3f3076c29b2e4ffca9fda2bfb105efd5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Wed, 29 Apr 2020 13:58:45 +0200 Subject: [PATCH] Fix Sitemap http to https --- src/routes/sitemap.xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/sitemap.xml.js b/src/routes/sitemap.xml.js index d776508..070ba54 100644 --- a/src/routes/sitemap.xml.js +++ b/src/routes/sitemap.xml.js @@ -46,7 +46,7 @@ const render = (pages, locations) => { // Get function export async function get (req, res, next) { // Define base url from request - baseURL = `http${(req.httpVersion >= 2) ? 's' : ''}://${req.headers.host}` + baseURL = `https://${req.headers.host}` // Get locations const locationsReq = await fetch(`${apiEndpoints.rest}/items/locations?fields=slug,country.slug,modified_on&status=published`)