The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Change mimetype to content_type in PDF output function

master
Gergely Polonkai 8 years ago
parent d3f74bbbc2
commit ac86b3ecb4
  1. 2
      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: <pre>%s</pre>' % escape(html))

Loading…
Cancel
Save