diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-07-06 22:43:05 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-07-06 22:43:05 +0200 |
commit | 0417d34533c187db1ac0fadd6765573defb69d00 (patch) | |
tree | 626a55e0d39d01903045ffbbeb9bb42cb4ac6d62 | |
parent | a57611e308f7cc3543363ed6970e21b0d7a2a2f8 (diff) |
curl: avoid setting libcurl options to its default
it makes the --libcurl output easier to follow.
-rw-r--r-- | src/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index fc255c71d..72ab28868 100644 --- a/src/main.c +++ b/src/main.c @@ -5088,7 +5088,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) config->hostpubmd5); /* 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) 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); /* curl 7.16.0 */ - my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, - !config->disable_sessionid); + if(config->disable_sessionid) + my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, + !config->disable_sessionid); /* curl 7.16.2 */ if(config->raw) { |