summaryrefslogtreecommitdiffstats
path: root/src/plugins/influxdb-writer.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-23 09:52:55 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:41:14 +0200
commit14002dcd6c6b15561a7c25925dccd93f911077e5 (patch)
tree57aff70fbff1ae994fe2df098cb44afc7a94b09e /src/plugins/influxdb-writer.c
parent0697533c9692ec55f711b9eed35ea6dbb4e69326 (diff)
Use news wrap curl functions.
Change-Id: Idb05592f1deca3db9017c2717a5cc77d8880da2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/plugins/influxdb-writer.c')
-rw-r--r--src/plugins/influxdb-writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/influxdb-writer.c b/src/plugins/influxdb-writer.c
index a236fe3..4ffa8c9 100644
--- a/src/plugins/influxdb-writer.c
+++ b/src/plugins/influxdb-writer.c
@@ -134,7 +134,7 @@ CURL *make_curl_write_post(const char *url, json_object *metricsJ)
/* Check that we just do not broke the for loop before trying preparing CURL
request object */
curl = i == lpd ?
- curl_wrap_prepare_post(url, NULL, 1, " ", (const char * const*)post_data) : NULL;
+ curl_wrap_prepare_post_binary(url, NULL, " ", (const char * const*)post_data) : NULL;
free(serie);
free(post_data);