diff options
| author | 2019-09-11 11:00:55 +0100 | |
|---|---|---|
| committer | 2019-09-11 11:00:55 +0100 | |
| commit | cf9c82b13141543e3e6523797c8fcd727f5aa03f (patch) | |
| tree | e9ed1822b2fbc6eca78f3a0769d7a9e35e18026f | |
| parent | return `url` on actor (diff) | |
| signature | ||
force content-length on to REST API responses
| -rw-r--r-- | modules/rest_api.py | 1 |
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): |
