force content-length on to REST API responses

This commit is contained in:
jesopo 2019-09-11 11:00:55 +01:00
parent b6133579d1
commit cf9c82b131

View file

@ -36,6 +36,7 @@ class Response(object):
headers[key] = value
if not has_content_type:
headers["Content-Type"] = self.content_type
headers["Content-Length"] = len(self._data)
return headers
def get_data(self):