diff options
author | Julien Cristau <jcristau@debian.org> | 2018-07-06 23:01:30 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2018-07-06 23:01:57 +0200 |
commit | 16d81be390a2f452e652c46ff380967a45365aca (patch) | |
tree | a761d0d257d818a0398ae5e20739c0764d1da867 /lib | |
parent | 0ec5e36aac1b9fd640da0a2ae44b4d22a7393f2b (diff) |
Also set Content-Length for HTMLResult
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/web_support.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py index da68b7d315..0f58d450ac 100644 --- a/lib/python/web_support.py +++ b/lib/python/web_support.py @@ -661,6 +661,7 @@ class HTMLResult(Result): buf.write('\n') self.contents.flatten(buf.write) buf = buf.getvalue() + self.headers['Content-Length'] = str(len(buf)) def later(req): headers_later(req) req.wfile.write(buf) |