Skip to content

Commit

Permalink
Add comment about browsers not liking application/json.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdga committed Jun 12, 2011
1 parent 42184c0 commit 643c603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileupload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def delete(self, request, *args, **kwargs):
return JSONResponse(True)

class JSONResponse(HttpResponse):
""" JSON response class """
"""JSON response class. This does not help browsers not liking application/json."""
def __init__(self,obj='',json_opts={},mimetype="application/json",*args,**kwargs):
content = simplejson.dumps(obj,**json_opts)
super(JSONResponse,self).__init__(content,mimetype,*args,**kwargs)

0 comments on commit 643c603

Please sign in to comment.