]> git.dolda2000.com Git - wrw.git/commitdiff
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 4cf19519bb739832d841defe522ae5a49f80ec6a..0a6a43022004d8d45e7911fc9355d4b120840604 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]