Change mimetype to content_type in PDF output function

This commit is contained in:
Gergely Polonkai 2014-06-19 08:55:39 +00:00
parent d3f74bbbc2
commit ac86b3ecb4

View File

@ -23,7 +23,7 @@ def resumepdf(request):
dst.close() dst.close()
if not pdf.err: 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: <pre>%s</pre>' % escape(html)) return HttpResponse('We had some errors: <pre>%s</pre>' % escape(html))