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