Fix keyword-parameter handling bug in formparams.
[wrw.git] / wrw / filesys.py
index 264cf14..56d58aa 100644 (file)
@@ -29,7 +29,7 @@ class filehandler(object):
             elif ext == "html":
                 ctype = "text/html"
         req.ohead["Content-Type"] = ctype
-        return open(path, "r")
+        return open(path, "rb")
 
     def resolvefile(self, req, curpath, el):
         if os.path.isfile(pj(curpath, el)):