tool_operate: pass a long as CURLOPT_HEADEROPT argument

Closes #10798
This commit is contained in:
Daniel Stenberg 2023-03-20 23:22:08 +01:00
parent caf92a57b0
commit c0a9f905e6
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */