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.
Showing
- synapse/app/appservice.py 1 addition, 0 deletionssynapse/app/appservice.py
- synapse/app/client_reader.py 1 addition, 0 deletionssynapse/app/client_reader.py
- synapse/app/event_creator.py 1 addition, 0 deletionssynapse/app/event_creator.py
- synapse/app/federation_reader.py 1 addition, 0 deletionssynapse/app/federation_reader.py
- synapse/app/federation_sender.py 1 addition, 0 deletionssynapse/app/federation_sender.py
- synapse/app/frontend_proxy.py 1 addition, 0 deletionssynapse/app/frontend_proxy.py
- synapse/app/homeserver.py 2 additions, 0 deletionssynapse/app/homeserver.py
- synapse/app/media_repository.py 1 addition, 0 deletionssynapse/app/media_repository.py
- synapse/app/pusher.py 1 addition, 0 deletionssynapse/app/pusher.py
- synapse/app/synchrotron.py 1 addition, 0 deletionssynapse/app/synchrotron.py
- synapse/app/user_dir.py 1 addition, 0 deletionssynapse/app/user_dir.py
- synapse/http/additional_resource.py 1 addition, 2 deletionssynapse/http/additional_resource.py
- synapse/http/server.py 4 additions, 10 deletionssynapse/http/server.py
- synapse/http/site.py 10 additions, 1 deletionsynapse/http/site.py
- synapse/rest/client/v1/pusher.py 0 additions, 1 deletionsynapse/rest/client/v1/pusher.py
- synapse/rest/client/v2_alpha/auth.py 0 additions, 2 deletionssynapse/rest/client/v2_alpha/auth.py
- synapse/rest/key/v1/server_key_resource.py 0 additions, 2 deletionssynapse/rest/key/v1/server_key_resource.py
- synapse/rest/key/v2/local_key_resource.py 0 additions, 2 deletionssynapse/rest/key/v2/local_key_resource.py
- synapse/rest/key/v2/remote_key_resource.py 0 additions, 2 deletionssynapse/rest/key/v2/remote_key_resource.py
- synapse/rest/media/v1/download_resource.py 1 addition, 2 deletionssynapse/rest/media/v1/download_resource.py
Loading
Please register or sign in to comment