diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-04 10:04:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 10:04:50 -0500 |
commit | 1c9a8505623475ae28067e6f0e8e74ede70c728a (patch) | |
tree | 06b2b63dd07b69fb0ff7e99c2c28c1b57093ac37 /synapse/federation | |
parent | Add link to Synapse dev room to the relevant README section (#9002) (diff) | |
download | synapse-1c9a8505623475ae28067e6f0e8e74ede70c728a.tar.xz |
Add type hints to the crypto module. (#8999)
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/transport/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py index 434718ddfc..cfd094e58f 100644 --- a/synapse/federation/transport/server.py +++ b/synapse/federation/transport/server.py @@ -144,7 +144,7 @@ class Authenticator: ): raise FederationDeniedError(origin) - if not json_request["signatures"]: + if origin is None or not json_request["signatures"]: raise NoAuthenticationError( 401, "Missing Authorization headers", Codes.UNAUTHORIZED ) |