Fix encoding bug when reading stdout during upgrade
This commit is contained in:
parent
18f4b4ff5c
commit
a3e7556a06
|
@ -303,7 +303,7 @@ class UpgradeView(MasterView):
|
||||||
with open(path, 'rb') as f:
|
with open(path, 'rb') as f:
|
||||||
f.seek(offset)
|
f.seek(offset)
|
||||||
chunk = f.read(size)
|
chunk = f.read(size)
|
||||||
data['stdout'] = chunk.replace('\n', '<br />')
|
data['stdout'] = chunk.decode('utf8').replace('\n', '<br />')
|
||||||
session['stdout.offset'] = offset + size
|
session['stdout.offset'] = offset + size
|
||||||
session.save()
|
session.save()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue