X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fproto.py;h=0a6a43022004d8d45e7911fc9355d4b120840604;hb=ca3dce3812e3fc65f4c021aa76ee1430b47ad3af;hp=4cf19519bb739832d841defe522ae5a49f80ec6a;hpb=d740aa68a4d205076b2d132067ac2c31ceb3cd2e;p=wrw.git diff --git a/wrw/proto.py b/wrw/proto.py index 4cf1951..0a6a430 100644 --- a/wrw/proto.py +++ b/wrw/proto.py @@ -98,6 +98,7 @@ def simpleerror(env, startreq, code, title, msg): """ % (title, title, htmlq(msg)) + buf = buf.encode("us-ascii") startreq("%i %s" % (code, title), [("Content-Type", "text/html"), ("Content-Length", str(len(buf)))]) return [buf]