From a11aac24ca6d8548ae21fc35ec695179bdecf50e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 22 Aug 2008 19:14:19 +0000 Subject: [PATCH] (libT) add an environmental variable to enable libcurl verbosity --- libtransmission/web.c | 1 + 1 file changed, 1 insertion(+) 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 */