]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #2188 transmission-remote can't parse deflate()d responses
authorCharles Kerr <charles@transmissionbt.com>
Tue, 9 Jun 2009 15:45:09 +0000 (15:45 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 9 Jun 2009 15:45:09 +0000 (15:45 +0000)
daemon/remote.c

index a54d76688c48994055d08b51476b871cb477d63e..26c185266b9ea9d102e83cbc8b3332794a75d12b 100644 (file)
@@ -1408,9 +1408,7 @@ tr_curl_easy_init( struct evbuffer * writebuf )
     curl_easy_setopt( curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
     curl_easy_setopt( curl, CURLOPT_TIMEOUT, 60L );
     curl_easy_setopt( curl, CURLOPT_VERBOSE, debug );
-#ifdef HAVE_ZLIB
-    curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
-#endif
+    curl_easy_setopt( curl, CURLOPT_ENCODING, "" ); /* "" tells curl to fill in the blanks with what it was compiled to support */
     if( netrc )
         curl_easy_setopt( curl, CURLOPT_NETRC_FILE, netrc );
     if( auth )