lib/fluent/plugin/azureeventhubs/http.rb in sk-fluent-plugin-azureeventhubs-0.0.4 vs lib/fluent/plugin/azureeventhubs/http.rb in sk-fluent-plugin-azureeventhubs-0.0.5
- old
+ new
@@ -47,14 +47,14 @@
send_w_properties(payload, nil)
end
def send_w_properties(payload, properties)
token = generate_sas_token(@uri.to_s)
- Unirest.post "#{@uri.to_s}?timeout=60&api-version=2014-01",
+ Unirest.post "https://#{@uri.to_s}?timeout=60&api-version=2014-01",
headers:{ 'Content-Type' => 'application/atom+xml;type=entry;charset=utf-8',
'Authorization' => token
},
- parameters: payload.to_json {|response|
+ parameters: payload.to_s {|response|
response.code
}
end
end