X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fxhtml.py;h=5f1ca45eda7608e53a3f592283f474cf4fb2c334;hp=662c171f12bbf9228b48066dcc82f75172e849cf;hb=a9a78095b1696f56946abfc7c284f86a21fdcc2d;hpb=ca3dce3812e3fc65f4c021aa76ee1430b47ad3af diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 662c171..5f1ca45 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):