Permalink
Browse files

win32 needs to open the files as binary

  • Loading branch information...
1 parent bec0552 commit 6704dc99a073ed7f6c30400d4bc7dd875f345df5 unknown committed Mar 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado/web.py
View
@@ -1133,7 +1133,7 @@ def get(self, path, include_body=True):
if not include_body:
return
self.set_header("Content-Length", stat_result[stat.ST_SIZE])
- file = open(abspath, "r")
+ file = open(abspath, "rb")
try:
self.write(file.read())
finally:

0 comments on commit 6704dc9

Please sign in to comment.