diff options
author | Rob Austein <sra@hactrn.net> | 2016-03-21 22:13:04 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-03-21 22:13:04 +0000 |
commit | 06c36280969363739bb55710bf936abab77bf67d (patch) | |
tree | eba2235bee0be2b5b693f9b86975157020cc8cde /rpki/gui/app | |
parent | c456bb1fd3133b4e65f1f371b5358d3de55ebdbc (diff) |
Django API fashion police renamed "mimetype" to be "content_type".
svn path=/branches/tk705/; revision=6324
Diffstat (limited to 'rpki/gui/app')
-rw-r--r-- | rpki/gui/app/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpki/gui/app/views.py b/rpki/gui/app/views.py index 469cebc9..cd2f0e16 100644 --- a/rpki/gui/app/views.py +++ b/rpki/gui/app/views.py @@ -299,10 +299,10 @@ def serve_xml(content, basename, ext='xml'): `basename` is the prefix to specify for the XML filename. - `csv` is the type (default: xml) + `ext` is the type (default: xml) """ - resp = http.HttpResponse(content, mimetype='application/%s' % ext) + resp = http.HttpResponse(content, content_type='application/%s' % ext) resp['Content-Disposition'] = 'attachment; filename=%s.%s' % (basename, ext) return resp @@ -940,7 +940,7 @@ def roa_export(request): # each roa prefix gets a unique group so rpkid will issue separate roas for group, roapfx in enumerate(ROARequestPrefix.objects.filter(roa_request__issuer=conf)): csv_writer.writerow([str(roapfx.as_roa_prefix()), roapfx.roa_request.asn, '%s-%d' % (conf.handle, group)]) - resp = http.HttpResponse(f.getvalue(), mimetype='application/csv') + resp = http.HttpResponse(f.getvalue(), content_type='application/csv') resp['Content-Disposition'] = 'attachment; filename=roas.csv' return resp |