From ac86b3ecb4c31a13b263b8418ad4035879ee8291 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 19 Jun 2014 08:55:39 +0000 Subject: [PATCH] Change mimetype to content_type in PDF output function --- basics/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/views.py b/basics/views.py index 147437e..c196e33 100644 --- a/basics/views.py +++ b/basics/views.py @@ -23,7 +23,7 @@ def resumepdf(request): dst.close() if not pdf.err: - return HttpResponse(pdf_data, mimetype = 'application/pdf') + return HttpResponse(pdf_data, content_type = 'application/pdf') return HttpResponse('We had some errors:
%s
' % escape(html))