Skip to content

Commit 643c603

Browse files
committed
Add comment about browsers not liking application/json.
1 parent 42184c0 commit 643c603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileupload/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def delete(self, request, *args, **kwargs):
2525
return JSONResponse(True)
2626

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

0 commit comments

Comments
 (0)