diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-04-23 09:52:55 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-07-10 23:41:14 +0200 |
commit | 14002dcd6c6b15561a7c25925dccd93f911077e5 (patch) | |
tree | 57aff70fbff1ae994fe2df098cb44afc7a94b09e /src/plugins/influxdb.c | |
parent | 0697533c9692ec55f711b9eed35ea6dbb4e69326 (diff) |
Use news wrap curl functions.
Change-Id: Idb05592f1deca3db9017c2717a5cc77d8880da2d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/plugins/influxdb.c')
-rw-r--r-- | src/plugins/influxdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/influxdb.c b/src/plugins/influxdb.c index ebba4e1..77f78f7 100644 --- a/src/plugins/influxdb.c +++ b/src/plugins/influxdb.c @@ -62,7 +62,7 @@ int create_database() post_data[0] = "q=CREATE DATABASE \""DEFAULT_DB"\""; post_data[1] = NULL; - CURL *request = curl_wrap_prepare_post("localhost:"DEFAULT_DBPORT"/query",NULL, 1, ' ', post_data); + CURL *request = curl_wrap_prepare_post_binary("localhost:"DEFAULT_DBPORT"/query",NULL, " ", post_data); curl_wrap_perform(request, &result, &result_size); if(curl_wrap_response_code_get(request) != 200) { |