fix json import

This commit is contained in:
Kenneth Reitz
2012-03-29 13:36:34 -04:00
parent 3e915b7b14
commit c165123b98
+4 -3
View File
@@ -96,9 +96,9 @@ def get_dict(*keys, **extras):
form = nonflat_dict
try:
json = json.loads(request.data)
_json = json.loads(request.data)
except ValueError:
json = None
_json = None
d = dict(
@@ -108,7 +108,8 @@ def get_dict(*keys, **extras):
data=data,
origin=request.remote_addr,
headers=get_headers(),
files=get_files()
files=get_files(),
json=_json
)
out_d = dict()