diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-08-15 16:22:37 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-08-15 16:22:37 +0200 |
commit | f7846fc7aa10efa34c611fb3bda4a562ba214520 (patch) | |
tree | aa636c1e4a8591391e31f95ce642e43cd65a1ed4 | |
parent | 57421dcd99559d0ab2f49628f020bf7aa1fa7d04 (diff) | |
download | qutebrowser-f7846fc7aa10efa34c611fb3bda4a562ba214520.tar.gz qutebrowser-f7846fc7aa10efa34c611fb3bda4a562ba214520.zip |
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/...`.
-rw-r--r-- | tests/end2end/fixtures/webserver_sub.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |