X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fxhtml.py;h=d19fc99a0b4bf33618906d635cb5e0c80505b6a3;hp=3c6c0f6898333ae89a28bc01b5a106fa17325b05;hb=a7b35f84508eb5ab8a890065275e5a0f3bc5bef5;hpb=5a071401aade4fa5c1d3ef852a5861cb94475e73 diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 3c6c0f6..d19fc99 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 = StringIO.StringIO() 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):