I was trying to get the download the result file in Subtitle Fixer, but it was getting late for the release and I had to miss that feature. Turns out it was a fairly simple task. Just create a Response object and set the Content-Type and Content-Disposition in the headers.
response = Response(content) response.headers['Content-Type'] = 'text/srt' response.headers['Content-Disposition'] = "attachment; filename=%s.srt" %key
So this makes the app a bit more complete and now I can sleep well. Actually I can stop thinking about the missing feature and work on the next project. Thanks Anish for the feedback – helped me to look at the code with a fresh mind.