From f7846fc7aa10efa34c611fb3bda4a562ba214520 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 15 Aug 2023 16:22:37 +0200 Subject: tests: Don't encode headers set via Flask See https://github.com/pallets/werkzeug/commit/5ff0a573f4b78d9724f1f063fb058fd6bc76b24d With that commit, encoding the header ourselves means that we'll actually be navigating to the path `/b'data/...'` instead of `/data/...`. --- tests/end2end/fixtures/webserver_sub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/end2end/fixtures/webserver_sub.py b/tests/end2end/fixtures/webserver_sub.py index 7ad898d17..f716c7443 100644 --- a/tests/end2end/fixtures/webserver_sub.py +++ b/tests/end2end/fixtures/webserver_sub.py @@ -117,7 +117,7 @@ def redirect_to(): # header to the exact string supplied. response = app.make_response('') response.status_code = HTTPStatus.FOUND - response.headers['Location'] = flask.request.args['url'].encode('utf-8') + response.headers['Location'] = flask.request.args['url'] return response -- cgit v1.2.3-54-g00ecf