From fc3c93619631d239b51c4d4b0116d7bf308c3270 Mon Sep 17 00:00:00 2001 From: Peter Gillard-Moss Date: Wed, 21 Nov 2012 13:29:37 +0000 Subject: [PATCH] Set content type when writing file to s3 --- lib/fluent/plugin/out_s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/plugin/out_s3.rb b/lib/fluent/plugin/out_s3.rb index 4420a369..d5c84768 100644 --- a/lib/fluent/plugin/out_s3.rb +++ b/lib/fluent/plugin/out_s3.rb @@ -55,7 +55,7 @@ def write(chunk) 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