X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fproto.py;fp=wrw%2Fproto.py;h=0a6a43022004d8d45e7911fc9355d4b120840604;hp=4cf19519bb739832d841defe522ae5a49f80ec6a;hb=cb8bb5edc89f083d161a7c5c9f4ed904838e1266;hpb=10ba659d32518d2d09b12ada86a380798b378fe7 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]