From a1f5c3db3a94db8606ac7654d2697c8deb5c59e7 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 5 Feb 2014 00:37:12 +0100 Subject: [PATCH] Have .csv files be downloaded So that users can open it in LibreOffice/OpenOffice/Word without having to save it to disk beforehands --- morss/morss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/morss/morss.py b/morss/morss.py index b02c7cb..8a77d87 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -704,6 +704,7 @@ def cgi_app(environ, start_response): headers['content-type'] = 'application/json' elif options.csv: headers['content-type'] = 'text/csv' + headers['content-disposition'] = 'attachment; filename="feed.csv"' else: headers['content-type'] = 'text/xml'