[Git][security-tracker-team/security-tracker][master] 2 commits: Also set Content-Length for HTMLResult
Salvatore Bonaccorso
carnil at debian.org
Fri Jul 6 22:24:36 BST 2018
Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker
Commits:
4f71a227 by Julien Cristau at 2018-07-06T23:01:57+02:00
Also set Content-Length for HTMLResult
- - - - -
0670207f by Salvatore Bonaccorso at 2018-07-06T23:24:11+02:00
Merge branch 'jcristau/security-tracker-content-length'
- - - - -
1 changed file:
- lib/python/web_support.py
Changes:
=====================================
lib/python/web_support.py
=====================================
--- 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)
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/ba08fd94962b6b0f04c9f914db8c579615006eaa...0670207f919e503f72b29eb2d145753e4eb8448d
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/ba08fd94962b6b0f04c9f914db8c579615006eaa...0670207f919e503f72b29eb2d145753e4eb8448d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20180706/eec12c95/attachment.html>
More information about the debian-security-tracker-commits
mailing list