mirror of
https://github.com/curl/curl.git
synced 2026-07-31 05:08:03 +03:00
tool: remove duplicate setopts
CURLOPT_RESOLVE and CURLOPT_CONNECT_TO were set twice. A happy little accident?
This commit is contained in:
parent
112a8b5adf
commit
ab097323d7
1 changed files with 4 additions and 5 deletions
|
|
@ -1120,8 +1120,10 @@ static CURLcode misc_setopts(struct OperationConfig *config, CURL *curl)
|
|||
CURLcode result = CURLE_OK;
|
||||
|
||||
my_setopt_ptr(curl, CURLOPT_STDERR, tool_stderr);
|
||||
my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve);
|
||||
my_setopt_slist(curl, CURLOPT_CONNECT_TO, config->connect_to);
|
||||
if(config->resolve)
|
||||
my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve);
|
||||
if(config->connect_to)
|
||||
my_setopt_slist(curl, CURLOPT_CONNECT_TO, config->connect_to);
|
||||
|
||||
if(config->gssapi_delegation)
|
||||
my_setopt_long(curl, CURLOPT_GSSAPI_DELEGATION, config->gssapi_delegation);
|
||||
|
|
@ -1131,9 +1133,6 @@ static CURLcode misc_setopts(struct OperationConfig *config, CURL *curl)
|
|||
if(config->proto_redir_present)
|
||||
MY_SETOPT_STR(curl, CURLOPT_REDIR_PROTOCOLS_STR, config->proto_redir_str);
|
||||
|
||||
my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve);
|
||||
my_setopt_slist(curl, CURLOPT_CONNECT_TO, config->connect_to);
|
||||
|
||||
if(config->gssapi_delegation)
|
||||
my_setopt_long(curl, CURLOPT_GSSAPI_DELEGATION, config->gssapi_delegation);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue