senchalabs/connect — pull request #535 by zertosh (2012-04-12 19:08:15+00:00)
Title: Added support for 'content-disposition' header to connect.static() middleware.

Not a huge deal, but I like having certain static routes to always tell the browser to do a 'save as' on the file instead of trying to open it. You can now set the option { contentDisposition: true } to set the header so that the browser does a 'save as'. Here is the description of the header: http://tools.ietf.org/html/rfc6266

This includes tests too.

The name of the option might not be the best though, maybe I should change it to "askSaveAs"?