[Git][security-tracker-team/security-tracker][master] 2 commits: Set Content-Length for BinaryResult

Salvatore Bonaccorso carnil at debian.org
Fri Jul 6 21:51:43 BST 2018


Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker


Commits:
0f7c3d07 by Julien Cristau at 2018-07-06T22:18:32+02:00
Set Content-Length for BinaryResult

- - - - -
78b980b5 by Salvatore Bonaccorso at 2018-07-06T22:51:18+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
@@ -674,6 +674,7 @@ class BinaryResult(Result):
         self.contents = contents
         self.status = status
         self.headers['Content-Type'] = mimetype
+        self.headers['Content-Length'] = str(len(self.contents))
 
     def flatten(self, write):
         """Invokes write for the response header and the binary data."""



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/7d5a306b6e428baff7dab718aeecb85161a8da17...78b980b5da343d734d4a66c6b462139804701866

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/7d5a306b6e428baff7dab718aeecb85161a8da17...78b980b5da343d734d4a66c6b462139804701866
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/959fc22d/attachment.html>


More information about the debian-security-tracker-commits mailing list