]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: set HSTS with CURLOPT_HSTS to pass on filename
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 Nov 2020 08:17:58 +0000 (09:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Nov 2020 07:22:28 +0000 (08:22 +0100)
Closes #6175

src/tool_operate.c

index 0372e423bc2172577833b6c823f42ddd45975cde..bc9dc058b97606cf3fc7ad382b19ad702b8fc0c2 100644 (file)
@@ -2073,7 +2073,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
           my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc);
 
         if(config->hsts)
-          my_setopt_bitmask(curl, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE);
+          my_setopt_str(curl, CURLOPT_HSTS, config->hsts);
 
 #ifdef USE_METALINK
         if(!metalink && config->use_metalink) {