]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: pass a long as CURLOPT_HEADEROPT argument
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Mar 2023 22:22:08 +0000 (23:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 22 Mar 2023 12:51:37 +0000 (13:51 +0100)
Closes #10798

src/tool_operate.c

index 712d966db65be6cd244b9681f5cd9fee79d910c4..72b0253306ae27427196199a1e1a432fdbe63efa 100644 (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 */