diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-18 17:37:19 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-18 17:37:19 +0000 |
commit | 142f1263f6293bc6ad707ebe20b75d680774c962 (patch) | |
tree | 0e8537e5dfb49960d02a0e500d76706f8b355f89 /synapse/http/matrixfederationclient.py | |
parent | Bump matrix-angular-sdk version (diff) | |
parent | Conform to header spec take two (diff) | |
download | synapse-142f1263f6293bc6ad707ebe20b75d680774c962.tar.xz |
Merge pull request #82 from matrix-org/git_tag_version
Git tag version
Diffstat (limited to 'synapse/http/matrixfederationclient.py')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index 49a4c7d9d3..9d483032a0 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -20,7 +20,6 @@ from twisted.web.client import readBody, _AgentBase, _URI from twisted.web.http_headers import Headers from twisted.web._newclient import ResponseDone -from synapse.http.agent_name import AGENT_NAME from synapse.http.endpoint import matrix_federation_endpoint from synapse.util.async import sleep from synapse.util.logcontext import PreserveLoggingContext @@ -80,6 +79,7 @@ class MatrixFederationHttpClient(object): self.server_name = hs.hostname self.agent = MatrixFederationHttpAgent(reactor) self.clock = hs.get_clock() + self.version_string = hs.version_string @defer.inlineCallbacks def _create_request(self, destination, method, path_bytes, @@ -87,7 +87,7 @@ class MatrixFederationHttpClient(object): query_bytes=b"", retry_on_dns_fail=True): """ Creates and sends a request to the given url """ - headers_dict[b"User-Agent"] = [AGENT_NAME] + headers_dict[b"User-Agent"] = [self.version_string] headers_dict[b"Host"] = [destination] url_bytes = urlparse.urlunparse( |