X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fxhtml.py;fp=wrw%2Fsp%2Fxhtml.py;h=52e7f9f8e653c5d679d300a15c34dd8d6c4396fe;hp=17c56788729b63cbb631a2a3db547a4dbb441edf;hb=3b67497cb853ea7dd49f579566e5f0b60a3c97d7;hpb=fd7af0a278cf6a58b8ea371e3e84c99c1cb77e0c 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):