cope with Sinatra more aggressively trying to guess Content-Type
authorLunar <lunar@anargeek.net>
Wed, 13 Mar 2013 17:43:44 +0000 (18:43 +0100)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 10:44:12 +0000 (11:44 +0100)
commitaf48bf567b4b3825236ca9aea726dbcadf42eb81
tree04f8854a7d1468d3dd24ba2c42a0628181a5509d
parent25ac541ff3bca7707b5d75541f4d8fd5a539d8c2
cope with Sinatra more aggressively trying to guess Content-Type

It looks like recent Sinatra are now trying to guess Content-Type more
aggressively when using attachment. So we now set Content-Length and
Content-Type before calling Sinatra's methods in Application#send_stored_file.
lib/coquelicot/app.rb