Merge pull request #1447 from da2x/patch-4

Export OPML files as .opml
This commit is contained in:
Samuel Clay 2021-05-13 19:14:24 -04:00 committed by GitHub
commit 5c415394d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,8 +78,8 @@ def opml_export(request):
exporter = OPMLExporter(user)
opml = exporter.process()
response = HttpResponse(opml, content_type='text/xml')
response['Content-Disposition'] = 'attachment; filename=NewsBlur-%s-%s' % (
response = HttpResponse(opml, content_type='text/xml; charset=utf-8')
response['Content-Disposition'] = 'attachment; filename=NewsBlur-%s-%s.opml' % (
user.username,
now.strftime('%Y-%m-%d')
)