diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2012-11-04 11:11:41 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2012-11-04 11:11:54 +0000 |
commit | f5a98defaec97cf7a18516c8c9af49f10b93f0cf (patch) | |
tree | 63b46fdde223de698dbf1ff5c655433dc3866351 | |
parent | 3675f38cc3484204c5c215d4d0d48f40111fe1cc (diff) | |
download | netsurf-f5a98defaec97cf7a18516c8c9af49f10b93f0cf.tar.gz netsurf-f5a98defaec97cf7a18516c8c9af49f10b93f0cf.tar.bz2 |
Enable verbose curl debug
-rw-r--r-- | content/fetchers/curl.c | 5 |
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); |