[Checkins] SVN: bobo/trunk/bobo/ boboserver.File must explicitly open files in binary mode, which is not the default on Windows.
Fabio Tranchitella
kobold at kobold.it
Fri Aug 14 09:57:17 EDT 2009
Log message for revision 102765:
boboserver.File must explicitly open files in binary mode, which is not the default on Windows.
Changed:
U bobo/trunk/bobo/README.txt
U bobo/trunk/bobo/src/boboserver.py
-=-
Modified: bobo/trunk/bobo/README.txt
===================================================================
--- bobo/trunk/bobo/README.txt 2009-08-14 11:03:28 UTC (rev 102764)
+++ bobo/trunk/bobo/README.txt 2009-08-14 13:57:16 UTC (rev 102765)
@@ -22,6 +22,12 @@
Change History
==============
+0.2.2 (unreleased)
+------------------
+
+BugFix: boboserver.File must explicitly open files in binary mode, which is not
+the default on Windows.
+
0.2.1 2009-06-16
----------------
Modified: bobo/trunk/bobo/src/boboserver.py
===================================================================
--- bobo/trunk/bobo/src/boboserver.py 2009-08-14 11:03:28 UTC (rev 102764)
+++ bobo/trunk/bobo/src/boboserver.py 2009-08-14 13:57:16 UTC (rev 102765)
@@ -94,7 +94,7 @@
if content_type is not None:
response.content_type = content_type
try:
- response.body = open(self.path).read()
+ response.body = open(self.path, 'rb').read()
except IOError:
raise bobo.NotFound
More information about the Checkins
mailing list