Skip to content

Commit

Permalink
Merge pull request #3144 from fluent/fix-3139
Browse files Browse the repository at this point in the history
out_http: Don't use destructive method for json_array. fix #3139
  • Loading branch information
repeatedly committed Oct 8, 2020
2 parents 9170665 + a727faf commit 436c7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def create_request(chunk, uri)
req.basic_auth(@auth.username, @auth.password)
end
set_headers(req)
req.body = @json_array ? "[#{chunk.read.chop!}]" : chunk.read
req.body = @json_array ? "[#{chunk.read.chop}]" : chunk.read
req
end

Expand Down

0 comments on commit 436c7da

Please sign in to comment.