aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/routes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 1a573006..144922a8 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -1091,7 +1091,10 @@ def wp_oauth_rewrite():
"""
This is a dirty hack to rewrite '/auth/wikipedia/auth' to '/auth/wikipedia/oauth-callback'
"""
- return redirect(b"/auth/wikipedia/oauth-callback?" + request.query_string, 307)
+ return redirect(
+ (b"/auth/wikipedia/oauth-callback?" + request.query_string).decode('utf-8'),
+ 307,
+ )
@app.route('/auth/wikipedia/finish-login')
def wp_oauth_finish_login():