mirror of
https://github.com/curl/curl.git
synced 2026-06-16 19:05:39 +03:00
tool: fix --capath when proxy support is disabled
After 95e8515ca0, --capath always sets CURLOPT_PROXY_CAPATH, which fails
with CURLE_UNKNOWN_OPTION when proxy support is disabled.
Closes #12089
This commit is contained in:
parent
526779a7ee
commit
014ce7c0d0
1 changed files with 2 additions and 1 deletions
|
|
@ -1776,7 +1776,8 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||
(config->proxy_capath ?
|
||||
config->proxy_capath :
|
||||
config->capath));
|
||||
if(result == CURLE_NOT_BUILT_IN) {
|
||||
if((result == CURLE_NOT_BUILT_IN) ||
|
||||
(result == CURLE_UNKNOWN_OPTION)) {
|
||||
if(config->proxy_capath) {
|
||||
warnf(global,
|
||||
"ignoring --proxy-capath, not supported by libcurl");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue