Skip to content

Commit

Permalink
fixed sending files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed May 9, 2015
1 parent 8c59e00 commit 8a5d161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/inventory_files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def show
format.download {
if ENV['ENJU_STORAGE'] == 's3'
send_data Faraday.get(@inventory_file.inventory.expiring_url).body.force_encoding('UTF-8'),
filename: File.basename(@inventory_file.inventory_file_name), type: 'application/octet-stream'
else
send_file file, filename: @inventory_file.inventory_file_name, type: 'application/octet-stream'
end
Expand Down

0 comments on commit 8a5d161

Please sign in to comment.