lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-0.2.3 vs lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-0.2.4
- old
+ new
@@ -53,10 +53,10 @@
tmp = Tempfile.new("s3-")
w = Zlib::GzipWriter.new(tmp)
begin
chunk.write_to(w)
w.close
- @bucket.objects[s3path].write(Pathname.new(tmp.path))
+ @bucket.objects[s3path].write(Pathname.new(tmp.path), :content_type => 'application/x-gzip')
ensure
w.close rescue nil
end
end
end