summaryrefslogtreecommitdiff
path: root/tests/end2end/fixtures/webserver_sub.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/fixtures/webserver_sub.py')
-rw-r--r--tests/end2end/fixtures/webserver_sub.py19
1 files changed, 3 insertions, 16 deletions
diff --git a/tests/end2end/fixtures/webserver_sub.py b/tests/end2end/fixtures/webserver_sub.py
index d0d64e258..f716c7443 100644
--- a/tests/end2end/fixtures/webserver_sub.py
+++ b/tests/end2end/fixtures/webserver_sub.py
@@ -1,19 +1,6 @@
-# Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
+# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
-# This file is part of qutebrowser.
-#
-# qutebrowser is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# qutebrowser is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
+# SPDX-License-Identifier: GPL-3.0-or-later
"""Web server for end2end tests.
@@ -130,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