]> granicus.if.org Git - curl/commitdiff
curl: avoid setting libcurl options to its default
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Jul 2010 20:43:05 +0000 (22:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Jul 2010 20:43:05 +0000 (22:43 +0200)
it makes the --libcurl output easier to follow.

src/main.c

index fc255c71d8a6bba08a2f78458c1e9583a516b59d..72ab2886895ca21fdb22692f71087af086ddd3dd 100644 (file)
@@ -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) {