Commit 48ef6d7b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: DownloadableMixin.index_html() should return bytes.

parent 922b9d6b
...@@ -167,7 +167,7 @@ class DownloadableMixin: ...@@ -167,7 +167,7 @@ class DownloadableMixin:
RESPONSE.setHeader('Accept-Ranges', 'bytes') RESPONSE.setHeader('Accept-Ranges', 'bytes')
else: else:
RESPONSE.setHeader('Content-Disposition', 'inline') RESPONSE.setHeader('Content-Disposition', 'inline')
return str(data) return bytes(data)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getStandardFilename') 'getStandardFilename')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment