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:
parent
57421dcd99
commit
f7846fc7aa
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue