diff --git a/httpbin/filters.py b/httpbin/filters.py index 021d32d..9dc272a 100644 --- a/httpbin/filters.py +++ b/httpbin/filters.py @@ -43,12 +43,11 @@ def json(f, *args, **kwargs): if isinstance(data, Response): return data - dump = omnijson.dumps(data) + dump = omnijson.dumps(data, indent=3) r = app.make_response(dump) r.headers['Content-Type'] = 'application/json' - return r diff --git a/reqs.txt b/reqs.txt index c759b66..153a128 100644 --- a/reqs.txt +++ b/reqs.txt @@ -6,4 +6,4 @@ argparse==1.2.1 distribute==0.6.15 wsgiref==0.1.2 decorator==3.3.1 -omnijson +omnijson==0.1.1 \ No newline at end of file