Commits

clach04 committed b926650 Draft

Serving a single binary file under Windows results in corrupted payload.

  • Participants
  • Parent commits f9b5d73

Comments (0)

Files changed (1)

 
       try:
          if type == "file":
-            datafile = file (self.filename)
+            datafile = open (self.filename, 'rb')
             shutil.copyfileobj (datafile, self.wfile)
             datafile.close ()
          elif type == "dir":