Skip to content

Commit

Permalink
tool: fix --capath when proxy support is disabled
Browse files Browse the repository at this point in the history
After 95e8515, --capath always sets CURLOPT_PROXY_CAPATH, which fails
with CURLE_UNKNOWN_OPTION when proxy support is disabled.

Closes #12089
  • Loading branch information
hwti authored and bagder committed Oct 21, 2023
1 parent 526779a commit 014ce7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tool_operate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 014ce7c

Please sign in to comment.