diff --git a/relay/misc.py b/relay/misc.py index a03700d..d7e96d8 100644 --- a/relay/misc.py +++ b/relay/misc.py @@ -180,6 +180,11 @@ class Message(ApMessage): class Response(AiohttpResponse): + # AiohttpResponse.__len__ method returns 0, so bool(response) always returns False + def __bool__(self) -> bool: + return True + + @classmethod def new(cls: type[Response], body: str | bytes | dict = '',