diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-02-11 07:20:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 07:20:16 -0500 |
commit | a121507cfec0ffce45a89f5a1019034eda5b0c70 (patch) | |
tree | 5a2f858ce5e86d2a572f4f023b76eba276308b90 /synapse/http/matrixfederationclient.py | |
parent | Tests: replace mocked Authenticator with the real thing (#11913) (diff) | |
download | synapse-a121507cfec0ffce45a89f5a1019034eda5b0c70.tar.xz |
Adds misc missing type hints (#11953)
Diffstat (limited to 'synapse/http/matrixfederationclient.py')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index 2e668363b2..c5f8fcbb2a 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -334,12 +334,11 @@ class MatrixFederationHttpClient: user_agent = hs.version_string if hs.config.server.user_agent_suffix: user_agent = "%s %s" % (user_agent, hs.config.server.user_agent_suffix) - user_agent = user_agent.encode("ascii") federation_agent = MatrixFederationAgent( self.reactor, tls_client_options_factory, - user_agent, + user_agent.encode("ascii"), hs.config.server.federation_ip_range_whitelist, hs.config.server.federation_ip_range_blacklist, ) |