From 95fe403b91af94a1c5f04c52afe9b94bbb293572 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Mon, 12 Jul 2021 12:51:25 +1000 Subject: [PATCH] review: don't return an absolute location header bad old flask version forces an absolute location when it shouldn't --- restreamer/restreamer/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/restreamer/restreamer/main.py b/restreamer/restreamer/main.py index 2a5487f..6d421fe 100644 --- a/restreamer/restreamer/main.py +++ b/restreamer/restreamer/main.py @@ -394,7 +394,9 @@ def review_race(match_id, race_number): relative_path = os.path.relpath(review_path, app.static_folder) review_url = os.path.join(app.static_url_path, relative_path) - return redirect(review_url) + response = redirect(review_url) + response.autocorrect_location_header = False + return response def main(host='0.0.0.0', port=8000, base_dir='.', backdoor_port=0, condor_db=None):