Skip to content

Commit

Permalink
Merge pull request #8 from ThoughtWorksStudios/master
Browse files Browse the repository at this point in the history
Set content-type when uploading to s3
  • Loading branch information
repeatedly committed Nov 21, 2012
2 parents a176b2d + fc3c936 commit 02071c7
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 02071c7

Please sign in to comment.