Commits

Andriy Kornatskyy  committed 1fd88af

Use method response.write_bytes in FileHandler

  • Participants
  • Parent commits c28625a

Comments (0)

Files changed (1)

File src/wheezy/web/handlers/file.py

             response.headers.append(HTTP_HEADER_ACCEPT_RANGE_NONE)
             file = open(abspath, 'rb')
             try:
-                response.write(file.read())
+                response.write_bytes(file.read())
             finally:
                 file.close()
         else: