From 6da84d8c334e16ebea6597d8b83d51552935ed00 Mon Sep 17 00:00:00 2001 From: Trupti Rajesh Kini Date: Mon, 17 Oct 2016 16:13:48 +0530 Subject: Changed mimetype to content_type for get_zip --- tbc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbc/views.py b/tbc/views.py index 5e6a2a1..9d8b7d4 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -1049,7 +1049,7 @@ def generate_zip(book_id): def get_zip(request, book_id=None): user = request.user s, zipfile_name = generate_zip(book_id) - resp = HttpResponse(s.getvalue(), mimetype = "application/x-zip-compressed") + resp = HttpResponse(s.getvalue(), content_type = "application/x-zip-compressed") resp['Content-Disposition'] = 'attachment; filename=%s' % zipfile_name return resp -- cgit