aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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):