mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(libT) add an environmental variable to enable libcurl verbosity
This commit is contained in:
parent
82815a74d2
commit
a11aac24ca
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ addTask( void * vtask )
|
||||||
curl_easy_setopt( ch, CURLOPT_FOLLOWLOCATION, 1 );
|
curl_easy_setopt( ch, CURLOPT_FOLLOWLOCATION, 1 );
|
||||||
curl_easy_setopt( ch, CURLOPT_MAXREDIRS, 5 );
|
curl_easy_setopt( ch, CURLOPT_MAXREDIRS, 5 );
|
||||||
curl_easy_setopt( ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
|
curl_easy_setopt( ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
|
||||||
|
curl_easy_setopt( ch, CURLOPT_VERBOSE, getenv( "TR_CURL_VERBOSE" ) != NULL );
|
||||||
if( task->range )
|
if( task->range )
|
||||||
curl_easy_setopt( ch, CURLOPT_RANGE, task->range );
|
curl_easy_setopt( ch, CURLOPT_RANGE, task->range );
|
||||||
else /* don't set encoding if range is sent; it messes up binary data */
|
else /* don't set encoding if range is sent; it messes up binary data */
|
||||||
|
|
Loading…
Reference in a new issue