From 4ffe8d1d44c8b6f5f8668720d3da1ea645f216a2 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Tue, 20 Sep 2022 11:59:59 +0800 Subject: Revert "No cURL verbose for now" This reverts commit 5b8cfb927d07f925c5a2b4b1d49a70fcf8c4e705. --- request.h | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.3