diff roundup/cgi/client.py @ 1472:77942e0a12fe

open static files using binary mode [SF#693208]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 26 Feb 2003 04:57:50 +0000
parents 79d8956de3f5
children ed725179953d
line wrap: on
line diff
--- a/roundup/cgi/client.py	Wed Feb 26 04:56:39 2003 +0000
+++ b/roundup/cgi/client.py	Wed Feb 26 04:57:50 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.99 2003-02-26 04:51:41 richard Exp $
+# $Id: client.py,v 1.100 2003-02-26 04:57:49 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -449,7 +449,7 @@
             mt = 'text/plain'
         self.additional_headers['Content-Type'] = mt
         self.additional_headers['Last-Modifed'] = rfc822.formatdate(lmt)
-        self.write(open(filename).read())
+        self.write(open(filename, 'rb').read())
 
     def renderContext(self):
         ''' Return a PageTemplate for the named page

Roundup Issue Tracker: http://roundup-tracker.org/