summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-22 21:51:39 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-22 21:51:39 +0800
commite5b07c7117ddc511520c17a50aa762921c69db28 (patch)
treec82cf976b925a3a04d1f1f00387fc750349bd112
parentee3cfdfd2996ddd92d46a448e8ea7ae0d9bb4070 (diff)
Turn on verbose again when debugging
-rw-r--r--client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client.c b/client.c
index a1358c4..87cb90a 100644
--- a/client.c
+++ b/client.c
@@ -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);