Merge pull request #1114 from imachug/binary
Read files as binary in fileGet()
This commit is contained in:
commit
53cd2cdbf3
1 changed files with 1 additions and 1 deletions
|
@ -597,7 +597,7 @@ class UiWebsocket(object):
|
|||
if required or inner_path in self.site.bad_files:
|
||||
with gevent.Timeout(timeout):
|
||||
self.site.needFile(inner_path, priority=6)
|
||||
body = self.site.storage.read(inner_path)
|
||||
body = self.site.storage.read(inner_path, "rb")
|
||||
except Exception, err:
|
||||
self.log.error("%s fileGet error: %s" % (inner_path, err))
|
||||
body = None
|
||||
|
|
Loading…
Reference in a new issue