lib/paperclip-aws.rb in paperclip-aws-1.6.0 vs lib/paperclip-aws.rb in paperclip-aws-1.6.1

- old
+ new

@@ -102,10 +102,10 @@ log("saving #{path(style)}") self.s3.buckets[@s3_bucket].objects[path(style)].write({ :file => file.path, :acl => @s3_permissions[:style.to_sym] || @s3_permissions[:default], - :content_type => file.content_type + :content_type => file.content_type.to_s.strip }.reverse_merge(@s3_options)) rescue AWS::S3::Errors::NoSuchBucket => e create_bucket retry rescue AWS::Errors::Base => e