diff --git a/daemon.py b/daemon.py index b218817e6..b8f69fecd 100644 --- a/daemon.py +++ b/daemon.py @@ -1731,12 +1731,12 @@ class PubServer(BaseHTTPRequestHandler): return True # protocol handler. See https://fedi-to.github.io/protocol-handler.html if self.path.startswith('/.well-known/protocol-handler'): - if calling_domain.endswidth('.onion'): + if calling_domain.endswith('.onion'): protocol_url = \ wellknown_protocol_handler(self.path, self.server.base_dir, 'http', self.server.onion_domain) - elif calling_domain.endswidth('.i2p'): + elif calling_domain.endswith('.i2p'): protocol_url = \ wellknown_protocol_handler(self.path, self.server.base_dir, 'http', self.server.i2p_domain)