make request truthy if has transport (#1222)
This commit is contained in:
parent
e1c9020268
commit
202a4c6525
|
@ -78,6 +78,11 @@ class Request(dict):
|
|||
self.method,
|
||||
self.path)
|
||||
|
||||
def __bool__(self):
|
||||
if self.transport:
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
def json(self):
|
||||
if self.parsed_json is None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user