Skip to content

Instantly share code, notes, and snippets.

@mateomurphy
Created September 5, 2010 15:24
Show Gist options
  • Save mateomurphy/566088 to your computer and use it in GitHub Desktop.
Save mateomurphy/566088 to your computer and use it in GitHub Desktop.
module Dragonfly
module Endpoint
def success_headers(job)
{
"Content-Type" => job.app.resolve_mime_type(job.result),
"Content-Length" => job.size.to_s,
"Content-Disposition" => "filename=#{job.name}"
}.merge(cache_headers(job))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment