mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
libcurl now has MUTE and NOPROGRESS set by default
This commit is contained in:
parent
fbca7a83fc
commit
ffa7c13117
@ -231,6 +231,11 @@ CURLcode Curl_open(CURL **curl, char *url)
|
|||||||
|
|
||||||
data->httpreq = HTTPREQ_GET; /* Default HTTP request */
|
data->httpreq = HTTPREQ_GET; /* Default HTTP request */
|
||||||
|
|
||||||
|
/* make libcurl quiet by default: */
|
||||||
|
data->bits.mute = TRUE; /* CURLOPT_MUTE changes this */
|
||||||
|
data->bits.hide_progress = TRUE; /* CURLOPT_NOPROGRESS changes these */
|
||||||
|
data->progress.flags |= PGRS_HIDE;
|
||||||
|
|
||||||
/* create an array with connection data struct pointers */
|
/* create an array with connection data struct pointers */
|
||||||
data->numconnects = 5; /* hard-coded right now */
|
data->numconnects = 5; /* hard-coded right now */
|
||||||
data->connects = (struct connectdata **)
|
data->connects = (struct connectdata **)
|
||||||
@ -363,6 +368,8 @@ CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
|
|||||||
data->bits.hide_progress = va_arg(param, long)?TRUE:FALSE;
|
data->bits.hide_progress = va_arg(param, long)?TRUE:FALSE;
|
||||||
if(data->bits.hide_progress)
|
if(data->bits.hide_progress)
|
||||||
data->progress.flags |= PGRS_HIDE;
|
data->progress.flags |= PGRS_HIDE;
|
||||||
|
else
|
||||||
|
data->progress.flags &= ~PGRS_HIDE;
|
||||||
break;
|
break;
|
||||||
case CURLOPT_NOBODY:
|
case CURLOPT_NOBODY:
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user