summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/http/server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index 5765dffe39..de26afb48a 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -233,6 +233,7 @@ def respond_with_json_bytes(request, code, json_bytes, send_cors=False,
     request.setResponseCode(code, message=response_code_message)
     request.setHeader(b"Content-Type", b"application/json")
     request.setHeader(b"Server", AGENT_NAME)
+    request.setHeader(b"Content-Length", b"%d" % len(json_bytes))
 
     if send_cors:
         request.setHeader("Access-Control-Allow-Origin", "*")