tests: Don't encode headers set via Flask

See 5ff0a573f4

With that commit, encoding the header ourselves means that we'll actually be
navigating to the path `/b'data/...'` instead of `/data/...`.
This commit is contained in:
Florian Bruhin 2023-08-15 16:22:37 +02:00
parent 57421dcd99
commit f7846fc7aa
1 changed files with 1 additions and 1 deletions

View File

@ -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