summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b59d386)
raw | patch | inline | side by side (parent: b59d386)
| author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
| Wed, 26 Feb 2003 04:57:50 +0000 (04:57 +0000) | ||
| committer | richard <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 | patch | blob | history | |
| roundup/cgi/client.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 67446318b92f0b0ddf8e791903fd6b1c6e87dfe8..b37db6266e7ce32410b887ab35f34710bf46a8eb 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- 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
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 174e4e8a95d9a6298111ca3abc5753c0145a78c3..e109bafacc7d7a46f296b1aa3a40c5f96f360e7f 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $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).
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