summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 11:59:59 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 11:59:59 +0800
commit4ffe8d1d44c8b6f5f8668720d3da1ea645f216a2 (patch)
treecc5ea153a8b9097559160ff3be2aace1af275f39
parent6c011cd71c4508bade7408dd2246e410f7173746 (diff)
Revert "No cURL verbose for now"
This reverts commit 5b8cfb927d07f925c5a2b4b1d49a70fcf8c4e705.
-rw-r--r--request.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/request.h b/request.h
index 849bc12..cfcc2a9 100644
--- a/request.h
+++ b/request.h
@@ -59,6 +59,9 @@ static inline void request_graphql(const char *query,
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, query);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, append);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, json);
+#ifdef DEBUG
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+#endif
curl_easy_perform(curl);
curl_slist_free_all(list);
curl_easy_cleanup(curl);