diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-05-10 18:46:59 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-05-10 18:50:27 +0100 |
commit | 318711e1399da009910c3a9e5fa297c28a2d0a97 (patch) | |
tree | 2fac172d40559f54fa2a349216e79548a5e0781e /synapse/http/additional_resource.py | |
parent | Merge pull request #3203 from matrix-org/rav/refactor_request_handler (diff) | |
download | synapse-318711e1399da009910c3a9e5fa297c28a2d0a97.tar.xz |
Set Server header in SynapseRequest
(instead of everywhere that writes a response. Or rather, the subset of places which write responses where we haven't forgotten it). This also means that we don't have to have the mysterious version_string attribute in anything with a request handler. Unfortunately it does mean that we have to pass the version string wherever we instantiate a SynapseSite, which has been c&ped 150 times, but that is code that ought to be cleaned up anyway really.
Diffstat (limited to 'synapse/http/additional_resource.py')
-rw-r--r-- | synapse/http/additional_resource.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/http/additional_resource.py b/synapse/http/additional_resource.py index d9e7f5dfb7..a797396ade 100644 --- a/synapse/http/additional_resource.py +++ b/synapse/http/additional_resource.py @@ -42,8 +42,7 @@ class AdditionalResource(Resource): Resource.__init__(self) self._handler = handler - # these are required by the request_handler wrapper - self.version_string = hs.version_string + # required by the request_handler wrapper self.clock = hs.get_clock() def render(self, request): |