Skip to content

Commit

Permalink
removed prepare_file_headers from downloads controller
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgreg99 committed Aug 7, 2015
1 parent b611d13 commit 57ca933
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions Gemfile.lock
Expand Up @@ -641,6 +641,3 @@ DEPENDENCIES
unicorn
web-console (~> 2.0)
webmock

BUNDLED WITH
1.10.6
8 changes: 0 additions & 8 deletions app/controllers/downloads_controller.rb
Expand Up @@ -3,12 +3,4 @@
# Hydra::Controller::DownloadBehavior can be overridden.
class DownloadsController < ApplicationController
include Hydra::Controller::DownloadBehavior

def prepare_file_headers
send_file_headers! content_options
file.mime_type = self.request.format.to_s
response.headers['Content-Type'] = file.mime_type
self.content_type = file.mime_type
end

end

0 comments on commit 57ca933

Please sign in to comment.