lib/fluent/plugin/azureeventhubs/http.rb in sk-fluent-plugin-azureeventhubs-0.0.2 vs lib/fluent/plugin/azureeventhubs/http.rb in sk-fluent-plugin-azureeventhubs-0.0.3
- old
+ new
@@ -51,10 +51,10 @@
token = generate_sas_token(@uri.to_s)
Unirest.post @uri.request_uri,
headers:{ 'Content-Type' => 'application/atom+xml;type=entry;charset=utf-8',
'Authorization' => token
},
- parameters:payload {|response|
+ parameters: payload.to_json {|response|
response.code
}
end
end