Skip to content

Commit

Permalink
rebased with master
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgreg99 committed Aug 5, 2015
1 parent 9ad16f8 commit b611d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/downloads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DownloadsController < ApplicationController

def prepare_file_headers
send_file_headers! content_options
file.mime_type = "image/jpeg"
file.mime_type = self.request.format.to_s
response.headers['Content-Type'] = file.mime_type
self.content_type = file.mime_type
end
Expand Down

0 comments on commit b611d13

Please sign in to comment.