Merge pull request #261 from yoloseem/parsed_json
Cache request.json even when it's empty.
This commit is contained in:
@@ -64,7 +64,7 @@ class Request(dict):
|
||||
|
||||
@property
|
||||
def json(self):
|
||||
if not self.parsed_json:
|
||||
if self.parsed_json is None:
|
||||
try:
|
||||
self.parsed_json = json_loads(self.body)
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user