mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 16:21:00 -05:00
Add support for compression to federation responses (#13537)
Closes #13415. Signed-off-by: Ayush Anand <iamayushanand@gmail.com>
This commit is contained in:
parent
84169a82dc
commit
22ea51faf9
3 changed files with 6 additions and 2 deletions
|
|
@ -220,7 +220,10 @@ class SynapseHomeServer(HomeServer):
|
|||
resources.update({"/_matrix/consent": consent_resource})
|
||||
|
||||
if name == "federation":
|
||||
resources.update({FEDERATION_PREFIX: TransportLayerServer(self)})
|
||||
federation_resource: Resource = TransportLayerServer(self)
|
||||
if compress:
|
||||
federation_resource = gz_wrap(federation_resource)
|
||||
resources.update({FEDERATION_PREFIX: federation_resource})
|
||||
|
||||
if name == "openid":
|
||||
resources.update(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue