mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
UTF8 Encoding
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ def redirect_to():
|
||||
url = request.args.get('url', '/')
|
||||
response = app.make_response('')
|
||||
response.status_code = 302
|
||||
response.headers['Location'] = url
|
||||
response.headers['Location'] = url.encode('utf-8')
|
||||
return response
|
||||
|
||||
@app.route('/stream/<int:n>')
|
||||
|
||||
Reference in New Issue
Block a user