Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating s3 to add mime types, fixing variable typo

  • Loading branch information...
commit 8c04cb67de417ab6bf9b0615041ce4742e0076f4 1 parent c578131
@johnnydobbins johnnydobbins authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dpl/provider/s3.rb
View
2  lib/dpl/provider/s3.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.