From 7e3bd6f6654e14ff808b15d165070da7a2b9a004 Mon Sep 17 00:00:00 2001 From: Jake Charman Date: Sun, 15 Jun 2025 15:57:32 +0100 Subject: [PATCH] Always use HTTPS --- src/sitemap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sitemap.py b/src/sitemap.py index a43609d..c335319 100755 --- a/src/sitemap.py +++ b/src/sitemap.py @@ -28,6 +28,7 @@ def sitemap(): date = get_build_date() root = ET.Element('urlset', xmlns='http://www.sitemaps.org/schemas/sitemap/0.9') base_url = match(r'^https?:\/\/.+:?\d*(?=\/)', request.base_url).group() + base_url = base_url.replace('http://', 'https://') for route in get_routes(): url = ET.SubElement(root, 'url') ET.SubElement(url, 'loc').text = base_url + route