summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/api/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/api/api.py b/http/api/api.py
index 51b93d1..31d331f 100644
--- a/http/api/api.py
+++ b/http/api/api.py
@@ -152,7 +152,7 @@ def handle_download(response, request, uri_parts=[]):
content = base64.b64decode(output['content'])
response.content_type = 'application/octet-stream'
response.headers_out.add(
- 'Content-Disposition', 'attachment; filename=%s' % (output['name']))
+ 'Content-Disposition', 'attachment; filename=%s' % (output['name'].encode('utf-8')))
response.write(content)
def handler(req):