X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fsp%2Fxhtml.py;h=52e7f9f8e653c5d679d300a15c34dd8d6c4396fe;hb=3b67497cb853ea7dd49f579566e5f0b60a3c97d7;hp=17c56788729b63cbb631a2a3db547a4dbb441edf;hpb=a7a0908019bb95bb2be1c01e97e88f344807ccec;p=wrw.git diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 17c5678..52e7f9f 100644 --- a/wrw/sp/xhtml.py +++ b/wrw/sp/xhtml.py @@ -53,7 +53,9 @@ def forreq(req, tree): req.ohead["Content-Type"] = "text/html; charset=utf-8" buf = io.BytesIO() htmlindenter.output(buf, tree, doctype=(doctype, dtd), charset="utf-8") - return [buf.getvalue()] + ret = buf.getvalue() + req.ohead["Content-Length"] = len(ret) + return [ret] def xhtmlresp(callable): def wrapper(req):