mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 20:56:27 +00:00
Strip encoding
This commit is contained in:
+1
-1
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user