X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fproto.py;h=0e49379e391fb5e59a9f865f6a4a6078f92b6434;hp=1af091f92fb44a5a3dc4aea4f05ab9aae605a096;hb=199cdc4055921d7497e5a6b9a132ac44d04e9894;hpb=cbb90a8de3bed03b68b6e537433c6e6d17ff52cb diff --git a/wrw/proto.py b/wrw/proto.py index 1af091f..0e49379 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]