diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 11:59:59 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 11:59:59 +0800 |
commit | 4ffe8d1d44c8b6f5f8668720d3da1ea645f216a2 (patch) | |
tree | cc5ea153a8b9097559160ff3be2aace1af275f39 | |
parent | 6c011cd71c4508bade7408dd2246e410f7173746 (diff) |
Revert "No cURL verbose for now"
This reverts commit 5b8cfb927d07f925c5a2b4b1d49a70fcf8c4e705.
-rw-r--r-- | request.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |