summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-03-20 23:22:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-03-22 13:51:37 +0100
commitc0a9f905e6349b03e2faba4e453ec9619c765912 (patch)
treec541bc3c38de9ed0e9f6bb4120a987fd78e44e60 /src
parentcaf92a57b0b3e55ef344ea09d53bbb00c7f06265 (diff)
downloadcurl-c0a9f905e6349b03e2faba4e453ec9619c765912.tar.gz
tool_operate: pass a long as CURLOPT_HEADEROPT argument
Closes #10798
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 712d966db..72b025330 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 */