summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);