force content-length on to REST API responses
This commit is contained in:
parent
b6133579d1
commit
cf9c82b131
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue