mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-30 21:46:35 -05:00
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.
This commit is contained in:
parent
7b411007e6
commit
318711e139
23 changed files with 28 additions and 27 deletions
|
|
@ -93,7 +93,6 @@ class RemoteKey(Resource):
|
|||
def __init__(self, hs):
|
||||
self.keyring = hs.get_keyring()
|
||||
self.store = hs.get_datastore()
|
||||
self.version_string = hs.version_string
|
||||
self.clock = hs.get_clock()
|
||||
self.federation_domain_whitelist = hs.config.federation_domain_whitelist
|
||||
|
||||
|
|
@ -242,5 +241,4 @@ class RemoteKey(Resource):
|
|||
|
||||
respond_with_json_bytes(
|
||||
request, 200, result_io.getvalue(),
|
||||
version_string=self.version_string
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue