Fix Sitemap http to https
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-29 13:58:45 +02:00
parent bfba616df2
commit 50cd2a3f30

View File

@@ -46,7 +46,7 @@ const render = (pages, locations) => {
// Get function // Get function
export async function get (req, res, next) { export async function get (req, res, next) {
// Define base url from request // Define base url from request
baseURL = `http${(req.httpVersion >= 2) ? 's' : ''}://${req.headers.host}` baseURL = `https://${req.headers.host}`
// Get locations // Get locations
const locationsReq = await fetch(`${apiEndpoints.rest}/items/locations?fields=slug,country.slug,modified_on&status=published`) const locationsReq = await fetch(`${apiEndpoints.rest}/items/locations?fields=slug,country.slug,modified_on&status=published`)