From f1ec9ea426782e960c5f6c34625f5b5a7b1106d1 Mon Sep 17 00:00:00 2001 From: Julius Freudenberger Date: Mon, 6 Feb 2023 23:03:29 +0100 Subject: [PATCH] Make links in info and meta feeds use https --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 2e73184..0975a14 100644 --- a/app.py +++ b/app.py @@ -15,7 +15,7 @@ VIRTUAL_HOST = os.getenv('VIRTUAL_HOST') @app.route('/mensa/.json') def index(parser_name): try: - return utils.get_parser(parser_name).get_canteen_index(f'http://{VIRTUAL_HOST}/mensa/{parser_name}/meta') + return utils.get_parser(parser_name).get_canteen_index(f'https://{VIRTUAL_HOST}/mensa/{parser_name}/meta') except KeyError: abort(404) @@ -23,7 +23,7 @@ def index(parser_name): @app.route('/mensa//meta/.xml') def meta(parser_name, canteen_name): try: - return utils.get_parser(parser_name).get_meta_data(canteen_name, f'http://{VIRTUAL_HOST}/mensa/{parser_name}/feed') + return utils.get_parser(parser_name).get_meta_data(canteen_name, f'https://{VIRTUAL_HOST}/mensa/{parser_name}/feed') except KeyError: abort(404)