0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-06 14:48:56 +01:00

Merge branch 'daniel/useragent' into daniel/3pidinvites

This commit is contained in:
Daniel Wagner-Hall 2015-10-06 09:55:21 -05:00
commit ca6496c27c

View file

@ -69,7 +69,7 @@ class SimpleHttpClient(object):
) )
self.user_agent = hs.version_string self.user_agent = hs.version_string
if hs.config.user_agent_suffix: if hs.config.user_agent_suffix:
self.user_agent += " - " + hs.config.user_agent_suffix self.user_agent = "%s %s" % (self.user_agent, hs.config.user_agent_suffix,)
def request(self, method, uri, *args, **kwargs): def request(self, method, uri, *args, **kwargs):
# A small wrapper around self.agent.request() so we can easily attach # A small wrapper around self.agent.request() so we can easily attach