]> git.tokkee.org Git - roundup.git/commitdiff

Code

open static files using binary mode (sf bug 693208)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 26 Feb 2003 04:57:50 +0000 (04:57 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 26 Feb 2003 04:57:50 +0000 (04:57 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1549 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/client.py

index 67446318b92f0b0ddf8e791903fd6b1c6e87dfe8..b37db6266e7ce32410b887ab35f34710bf46a8eb 100644 (file)
@@ -64,6 +64,7 @@ are given with the most recent entry first.
 - added support for last-modified and if-modified-since headers for static
   file serving
 - added Node.get() method
+- open static files using binary mode (sf bug 693208)
 
 
 2003-??-?? 0.5.6
index 174e4e8a95d9a6298111ca3abc5753c0145a78c3..e109bafacc7d7a46f296b1aa3a40c5f96f360e7f 100644 (file)
@@ -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 @@ class Client:
             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