From 730d5ceed7e7d68e3311c8d36e4b4326d0f31381 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 28 Oct 2011 01:35:18 -0400 Subject: [PATCH] kill filters.json --- httpbin/filters.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/httpbin/filters.py b/httpbin/filters.py index 96fc86b..b0b16e2 100644 --- a/httpbin/filters.py +++ b/httpbin/filters.py @@ -33,23 +33,6 @@ def x_runtime(f, *args, **kwargs): return r -@decorator -def json(f, *args, **kwargs): - """JSON Flask Response Decorator.""" - - data = f(*args, **kwargs) - - # we already have a formatted response, move along - if isinstance(data, Response): - return data - - dump = omnijson.dumps(data) - - r = app.make_response(dump) - r.headers['Content-Type'] = 'application/json' - - return r - @decorator def gzip(f, *args, **kwargs):