summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-11-05 09:17:58 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-06 08:22:28 +0100
commitf7e72f4d5cda12e9a3881a37c8557885342bc5c5 (patch)
treebf55743d29b326b636f594a0ea5af71abbf729ca
parent6ee57c8bdd17b703fd2ef80e86243b18925b5de1 (diff)
downloadcurl-f7e72f4d5cda12e9a3881a37c8557885342bc5c5.tar.gz
tool_operate: set HSTS with CURLOPT_HSTS to pass on filename
Closes #6175
-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 0372e423b..bc9dc058b 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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) {