summaryrefslogtreecommitdiff
path: root/midtrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'midtrans.c')
-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")