diff --git a/vibora/client/session.py b/vibora/client/session.py index cd0c719..312f37d 100644 --- a/vibora/client/session.py +++ b/vibora/client/session.py @@ -36,12 +36,12 @@ def get_pool(self, protocol: str, host: str, port: int) -> ConnectionPool: :param port: :return: """ - key = (protocol, host, port) if port in (0, None): if protocol == 'https': port = 443 else: port = 80 + key = (protocol, host, port) try: return self.pools[key] except KeyError: