From: Charles Kerr Date: Fri, 22 Aug 2008 19:14:19 +0000 (+0000) Subject: (libT) add an environmental variable to enable libcurl verbosity X-Git-Tag: 1.40~419 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a11aac24ca6d8548ae21fc35ec695179bdecf50e;p=transmission (libT) add an environmental variable to enable libcurl verbosity --- diff --git a/libtransmission/web.c b/libtransmission/web.c index 2c2a145e3..83900b3b2 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -181,6 +181,7 @@ addTask( void * vtask ) curl_easy_setopt( ch, CURLOPT_FOLLOWLOCATION, 1 ); curl_easy_setopt( ch, CURLOPT_MAXREDIRS, 5 ); curl_easy_setopt( ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); + curl_easy_setopt( ch, CURLOPT_VERBOSE, getenv( "TR_CURL_VERBOSE" ) != NULL ); if( task->range ) curl_easy_setopt( ch, CURLOPT_RANGE, task->range ); else /* don't set encoding if range is sent; it messes up binary data */