summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <prabowo@darapsa.org>2022-10-05 17:43:18 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <prabowo@darapsa.org>2022-10-05 17:43:18 +0800
commitb7086a2580131680a74d4b56bbf0f26085c6bab6 (patch)
treef1c2243ca742e82ceb45d04060e92db1dbeab984
parent0c9fa43eae3dcdbd6a22eef77d846122563da75d (diff)
Verbose option
-rw-r--r--midtrans.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/midtrans.c b/midtrans.c
index 0f14d2b..e0d0b31 100644
--- a/midtrans.c
+++ b/midtrans.c
@@ -25,6 +25,9 @@ void midtrans_init(_Bool production, const char *api_key, const char *cainfo)
curl_global_init(CURL_GLOBAL_SSL);
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
+#ifdef DEBUG
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+#endif
static const char *basic_tmpl = "%s:";
const size_t basic_len = strlen(basic_tmpl) - strlen("%s")