diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-22 21:51:39 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-22 21:51:39 +0800 |
commit | e5b07c7117ddc511520c17a50aa762921c69db28 (patch) | |
tree | c82cf976b925a3a04d1f1f00387fc750349bd112 | |
parent | ee3cfdfd2996ddd92d46a448e8ea7ae0d9bb4070 (diff) |
Turn on verbose again when debugging
-rw-r--r-- | client.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,6 +24,9 @@ bool icclient_init(const char *url, const char *certificate) curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); if (certificate) curl_easy_setopt(curl, CURLOPT_CAINFO, certificate); +#ifdef DEBUG + curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); +#endif size_t length = strlen(url); bool append = !(bool)(url[length - 1] == '/'); server_url = malloc(length + (size_t)append + 1); |