diff options
-rw-r--r-- | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |