From 7acf7a8dc7dbf56d22ddff52b7793ac27fba732a Mon Sep 17 00:00:00 2001 From: Danil Shein Date: Mon, 26 Sep 2022 16:21:10 +0300 Subject: [PATCH] Fix test_redirect_location_is_https_for_secure_server - Flask 2.1.x and above returns relative location header see: https://github.com/pallets/werkzeug/issues/2352 --- tests/test_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_server.py b/tests/test_server.py index f789867..065670b 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -121,4 +121,4 @@ def test_redirect_location_is_https_for_secure_server(httpbin_secure): ) assert response.status_code == 302 assert response.headers.get("Location") - assert response.headers["Location"].startswith("https://") + assert response.headers["Location"].endswith("/html")