summary refs log tree commit diff
path: root/synapse/http/server_key_resource.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-18 17:37:19 +0000
committerErik Johnston <erik@matrix.org>2015-02-18 17:37:19 +0000
commit142f1263f6293bc6ad707ebe20b75d680774c962 (patch)
tree0e8537e5dfb49960d02a0e500d76706f8b355f89 /synapse/http/server_key_resource.py
parentBump matrix-angular-sdk version (diff)
parentConform to header spec take two (diff)
downloadsynapse-142f1263f6293bc6ad707ebe20b75d680774c962.tar.xz
Merge pull request #82 from matrix-org/git_tag_version
Git tag version
Diffstat (limited to 'synapse/http/server_key_resource.py')
-rw-r--r--synapse/http/server_key_resource.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/http/server_key_resource.py b/synapse/http/server_key_resource.py
index 4fc491dc82..71e9a51f5c 100644
--- a/synapse/http/server_key_resource.py
+++ b/synapse/http/server_key_resource.py
@@ -50,6 +50,7 @@ class LocalKey(Resource):
 
     def __init__(self, hs):
         self.hs = hs
+        self.version_string = hs.version_string
         self.response_body = encode_canonical_json(
             self.response_json_object(hs.config)
         )
@@ -82,7 +83,10 @@ class LocalKey(Resource):
         return json_object
 
     def render_GET(self, request):
-        return respond_with_json_bytes(request, 200, self.response_body)
+        return respond_with_json_bytes(
+            request, 200, self.response_body,
+            version_string=self.version_string
+        )
 
     def getChild(self, name, request):
         if name == '':