From 5a3a15f5c186af6b818f2b2d3a4dafeee48b4e33 Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Thu, 29 Jan 2015 13:58:22 +0000
Subject: [PATCH] Make post_json(...) actually send data.

---
 synapse/http/matrixfederationclient.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index b1b2916fd3..c7bf1b47b8 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -265,7 +265,7 @@ class MatrixFederationHttpClient(object):
             self.sign_request(
                 destination, method, url_bytes, headers_dict, data
             )
-            return None
+            return _JsonProducer(data)
 
         response = yield self._create_request(
             destination.encode("ascii"),
-- 
GitLab