Change mimetype to content_type in PDF output function
This commit is contained in:
parent
d3f74bbbc2
commit
ac86b3ecb4
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user