From bc4444acfc458056a495dd7f245c34ca517bb14f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 5 Jun 2012 10:32:23 +0200 Subject: [PATCH] data fix for json --- httpbin/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 9a8861d..8380003 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -96,7 +96,7 @@ def get_dict(*keys, **extras): form = nonflat_dict try: - _json = json.loads(request.data) + _json = json.loads(data) except ValueError: _json = None