Made appropriate Python3 changes.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 16 Jan 2013 00:23:01 +0000 (01:23 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 16 Jan 2013 00:23:01 +0000 (01:23 +0100)
wrw/proto.py

index 4cf1951..0a6a430 100644 (file)
@@ -98,6 +98,7 @@ def simpleerror(env, startreq, code, title, msg):
 </body>
 </html>
 """ % (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]