Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ba659
)
Made appropriate Python3 changes.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 16 Jan 2013 00:23:01 +0000
(
01:23
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 16 Jan 2013 00:23:01 +0000
(
01:23
+0100)
wrw/proto.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/proto.py
b/wrw/proto.py
index
4cf1951
..
0a6a430
100644
(file)
--- a/
wrw/proto.py
+++ b/
wrw/proto.py
@@
-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]