From: Daniel Stenberg Date: Mon, 20 Mar 2023 22:22:08 +0000 (+0100) Subject: tool_operate: pass a long as CURLOPT_HEADEROPT argument X-Git-Tag: curl-8_1_0~319 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0a9f905e6349b03e2faba4e453ec9619c765912;p=thirdparty%2Fcurl.git tool_operate: pass a long as CURLOPT_HEADEROPT argument Closes #10798 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 712d966db6..72b0253306 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1446,7 +1446,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, /* new in libcurl 7.36.0 */ if(config->proxyheaders) { my_setopt_slist(curl, CURLOPT_PROXYHEADER, config->proxyheaders); - my_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); + my_setopt(curl, CURLOPT_HEADEROPT, (long)CURLHEADER_SEPARATE); } /* new in libcurl 7.5 */