get "/download" do
send_file("xxx.doc", :filename => "xxx.bin", :type => 'application/octet-stream')
sends "download" file with MIME type corresponding to "doc" when trying to download it in browser.
Fixed by #56.
OK. I need to update. I'll reopen it if this is still actual.
It has not yet been merged. Just wanted to make clear for potential others (some have asked in IRC) what issues I've already got covered.