Strip encoding

This commit is contained in:
Sheng
2018-08-28 20:25:07 +08:00
parent 58feb5e76b
commit ad12876b0c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
except paramiko.SSHException:
result = None
else:
result = to_str(stdout.read())
result = to_str(stdout.read().strip())
return result if result else 'utf-8'