~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlmaps/views.py

  • Committer: franku
  • Date: 2016-03-16 10:25:56 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160316102556-vvsjlpdhi1j25423
runthrough deprecation timeline; fixed some things; added NOCOMMs

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    m.nr_downloads += 1
66
66
    m.save()
67
67
 
68
 
    response = HttpResponse(data, mimetype='application/octet-stream')
 
68
    response = HttpResponse(data, content_type='application/octet-stream')
69
69
    response['Content-Disposition'] = 'attachment; filename="%s"' % filename
70
70
 
71
71
    return response