summary refs log tree commit diff
path: root/synapse/appservice/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/appservice/api.py')
-rw-r--r--synapse/appservice/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index 4ccb5c43c1..d4cad1b1ed 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -73,7 +73,7 @@ class ApplicationServiceApi(SimpleHttpClient):
 
     @defer.inlineCallbacks
     def query_3pu(self, service, protocol, fields):
-        uri = service.url + ("/3pu/%s" % urllib.quote(protocol))
+        uri = "%s/3pu/%s" % (service.url, urllib.quote(protocol))
         response = None
         try:
             response = yield self.get_json(uri, fields)
@@ -84,7 +84,7 @@ class ApplicationServiceApi(SimpleHttpClient):
 
     @defer.inlineCallbacks
     def query_3pl(self, service, protocol, fields):
-        uri = service.url + ("/3pl/%s" % urllib.quote(protocol))
+        uri = "%s/3pl/%s" % (service.url, urllib.quote(protocol))
         response = None
         try:
             response = yield self.get_json(uri, fields)