X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Ffilesys.py;h=56d58aac7c6fb2324f5fe3d32f1c6cbac580d456;hp=264cf14b783dd4cea147e42930826e5c58ae9a7f;hb=HEAD;hpb=d854802afd3d6f22d86131f9a87105a69d4e1ec7 diff --git a/wrw/filesys.py b/wrw/filesys.py index 264cf14..56d58aa 100644 --- a/wrw/filesys.py +++ b/wrw/filesys.py @@ -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)):