Merge pull request #261 from yoloseem/parsed_json

Cache request.json even when it's empty.
This commit is contained in:
Eli Uriegas 2017-01-08 11:57:33 -06:00 committed by GitHub
commit b0bf989056

View File

@ -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: