title: Using StaticFileHandler to host a file on Tornado Python
body: <p>Hi I am attempting to use StaticFileHandler in Tornado and for the most part its working, except its outputting the file (.csv) in a webpage when I click download. The only way I can save the file is Right clicking and saying save target as (but this doesn't work in all browsers).</p>
  
  <p>How can I force the file to be downloaded?
  I know I need to somehow set the header of the StaticFileHandler like this:</p>
  
  <pre><code>    self.set_header('Content-Type','text-csv')
      self.set_header('Content-Disposition','attachment')
  </code></pre>
  
  <p>But I have no idea how to set it because it is a default handler.</p>
  
  <p>Thanks for your time!</p>