summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-11 16:41:16 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-11 16:41:16 +0000
commitf51832442674a1f72c41ffce2279880109fc7ff0 (patch)
treeb1acca703145d6c23da8092f1a153e149fb4abe5
parentFix newline on __init__ (diff)
downloadsynapse-f51832442674a1f72c41ffce2279880109fc7ff0.tar.xz
Minor tweaks based on PR feedback.
-rw-r--r--synapse/appservice/api.py6
-rw-r--r--synapse/http/client.py3
2 files changed, 5 insertions, 4 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index 6192813c03..c2179f8d55 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -80,11 +80,11 @@ class ApplicationServiceApi(SimpleHttpClient):
         response = None
         try:
             response = yield self.put_json(
-                uri,
-                {
+                uri=uri,
+                json_body={
                     "events": events
                 },
-                {
+                args={
                     "access_token": service.hs_token
                 })
             if response:  # just an empty json object
diff --git a/synapse/http/client.py b/synapse/http/client.py
index 575510637e..7b23116556 100644
--- a/synapse/http/client.py
+++ b/synapse/http/client.py
@@ -95,7 +95,8 @@ class SimpleHttpClient(object):
             Deferred: Succeeds when we get *any* 2xx HTTP response, with the
             HTTP body as JSON.
         Raises:
-            On a non-2xx HTTP response.
+            On a non-2xx HTTP response. The response body will be used as the
+            error message.
         """
         if len(args):
             query_bytes = urllib.urlencode(args, True)