Permalink
Browse files

Merge pull request #2 from martriay/master

Added functools.wraps
  • Loading branch information...
2 parents 5e20dd2 + 8d87d8f commit 0b2e8921a1d365b5e464c791cf41247dc88afed6 @fredj committed Mar 19, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 flaskext/jsonify.py
View
@@ -5,8 +5,10 @@
from simplejson import dumps
from flask import Response
+from functools import wraps
def jsonify(f):
+ @wraps(f)
def inner(*args, **kwargs):
return Response(dumps(f(*args, **kwargs)), mimetype='application/json')
return inner

0 comments on commit 0b2e892

Please sign in to comment.