Permalink
Browse files

Updating s3 to add mime types, fixing variable typo

  • Loading branch information...
1 parent c578131 commit 8c04cb67de417ab6bf9b0615041ce4742e0076f4 @johnnydobbins johnnydobbins committed with Nov 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dpl/provider/s3.rb
View
@@ -35,7 +35,7 @@ def push_app
Dir.chdir(options.fetch(:local_dir, Dir.pwd)) do
Dir.glob("**/*") do |filename|
content_type = MIME::Types.type_for(filename).first.to_s
- api.buckets[option(:bucket)].objects.create(upload_path(filename), File.read(filename), :content-type => content_type) unless File.directory?(filename)
+ api.buckets[option(:bucket)].objects.create(upload_path(filename), File.read(filename), :content_type => content_type) unless File.directory?(filename)
end
end
end

0 comments on commit 8c04cb6

Please sign in to comment.