From 95e35a10c913a99f86f29f2bda40584bab55fdfb Mon Sep 17 00:00:00 2001 From: Anna-Maria Meriniemi Date: Thu, 3 Aug 2017 11:28:21 +0300 Subject: [PATCH] Change torrent Content-Disposition back to inline As per comments in #288, Firefox forces a "what do you want to do with this"-dialog for 'attachment' even when it's set to open them immediately in another program. --- nyaa/views/torrents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/views/torrents.py b/nyaa/views/torrents.py index 227838a..f24d7a1 100644 --- a/nyaa/views/torrents.py +++ b/nyaa/views/torrents.py @@ -169,7 +169,7 @@ def download_torrent(torrent_id): flask.abort(404) torrent_file, torrent_file_size = _get_cached_torrent_file(torrent) - disposition = 'attachment; filename="{0}"; filename*=UTF-8\'\'{0}'.format( + disposition = 'inline; filename="{0}"; filename*=UTF-8\'\'{0}'.format( quote(torrent.torrent_name.encode('utf-8'))) resp = flask.Response(torrent_file)