summaryrefslogtreecommitdiff
path: root/content/fetchers/curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetchers/curl.c')
-rw-r--r--content/fetchers/curl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index f33dfde50..e40d18a3e 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -194,8 +194,11 @@ void fetch_curl_register(void)
SETOPT(CURLOPT_VERBOSE, 0);
}
SETOPT(CURLOPT_ERRORBUFFER, fetch_error_buffer);
- if (nsoption_bool(suppress_curl_debug))
+ if (nsoption_bool(suppress_curl_debug)) {
SETOPT(CURLOPT_DEBUGFUNCTION, fetch_curl_ignore_debug);
+ } else {
+ SETOPT(CURLOPT_VERBOSE, 1);
+ }
SETOPT(CURLOPT_WRITEFUNCTION, fetch_curl_data);
SETOPT(CURLOPT_HEADERFUNCTION, fetch_curl_header);
SETOPT(CURLOPT_PROGRESSFUNCTION, fetch_curl_progress);