summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2016-10-17 16:13:48 +0530
committerGitHub2016-10-17 16:13:48 +0530
commit6da84d8c334e16ebea6597d8b83d51552935ed00 (patch)
treefa677e00cf6202d5470041278c21c034b98388a7
parent12f75a677c0576e410b8cdef4ac6f71cef37dd91 (diff)
downloadPython-TBC-Interface-6da84d8c334e16ebea6597d8b83d51552935ed00.tar.gz
Python-TBC-Interface-6da84d8c334e16ebea6597d8b83d51552935ed00.tar.bz2
Python-TBC-Interface-6da84d8c334e16ebea6597d8b83d51552935ed00.zip
Changed mimetype to content_type for get_zip
-rw-r--r--tbc/views.py2
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