Removed usage of mimetype kwarg of HttpResponse

Refs #16519.
This commit is contained in:
Claude Paroz 2012-06-30 21:19:07 +02:00
parent c446bdee84
commit deed192dda
5 changed files with 9 additions and 9 deletions

View file

@ -84,7 +84,7 @@ def return_json_file(request):
cls=DjangoJSONEncoder,
ensure_ascii=False)
response = HttpResponse(obj_json.encode(charset), status=200,
mimetype='application/json; charset=%s' % charset)
content_type='application/json; charset=%s' % charset)
response['Content-Disposition'] = 'attachment; filename=testfile.json'
return response