lib/fluent/plugin/out_http.rb in fluent-plugin-out-http-1.3.2 vs lib/fluent/plugin/out_http.rb in fluent-plugin-out-http-1.3.3
- old
+ new
@@ -172,10 +172,10 @@
req['Content-Type'] = 'application/octet-stream'
compress_body(req, req.body)
end
def set_bulk_body(req, data)
- req.body = Yajl.dump(data)
+ req.body = data.to_s
req['Content-Type'] = 'application/x-ndjson'
compress_body(req, req.body)
end
def create_request(tag, time, record)