aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-11 11:00:55 +0100
committerGravatar jesopo2019-09-11 11:00:55 +0100
commitcf9c82b13141543e3e6523797c8fcd727f5aa03f (patch)
treee9ed1822b2fbc6eca78f3a0769d7a9e35e18026f /modules/rest_api.py
parentreturn `url` on actor (diff)
signature
force content-length on to REST API responses
Diffstat (limited to 'modules/rest_api.py')
-rw-r--r--modules/rest_api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py
index d649bb4d..33701abd 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -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):