Fix encoding bug when reading stdout during upgrade

This commit is contained in:
Lance Edgar 2017-08-09 22:34:03 -05:00
parent 18f4b4ff5c
commit a3e7556a06

View file

@ -303,7 +303,7 @@ class UpgradeView(MasterView):
with open(path, 'rb') as f:
f.seek(offset)
chunk = f.read(size)
data['stdout'] = chunk.replace('\n', '<br />')
data['stdout'] = chunk.decode('utf8').replace('\n', '<br />')
session['stdout.offset'] = offset + size
session.save()