curl: avoid setting libcurl options to its default

it makes the --libcurl output easier to follow.
This commit is contained in:
Daniel Stenberg 2010-07-06 22:43:05 +02:00
parent a57611e308
commit 0417d34533
1 changed files with 4 additions and 3 deletions

View File

@ -5088,7 +5088,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
config->hostpubmd5); config->hostpubmd5);
/* default to strict verifyhost */ /* default to strict verifyhost */
my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2); /* my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2); */
if(config->cacert || config->capath) { if(config->cacert || config->capath) {
if (config->cacert) if (config->cacert)
my_setopt_str(curl, CURLOPT_CAINFO, config->cacert); my_setopt_str(curl, CURLOPT_CAINFO, config->cacert);
@ -5302,8 +5302,9 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
config->ftp_alternative_to_user); config->ftp_alternative_to_user);
/* curl 7.16.0 */ /* curl 7.16.0 */
my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, if(config->disable_sessionid)
!config->disable_sessionid); my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE,
!config->disable_sessionid);
/* curl 7.16.2 */ /* curl 7.16.2 */
if(config->raw) { if(config->raw) {