Skip to content

Commit

Permalink
Set content type when writing file to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
petergillardmoss committed Nov 21, 2012
1 parent a176b2d commit fc3c936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc3c936

Please sign in to comment.