mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
tool_operate: set HSTS with CURLOPT_HSTS to pass on filename
Closes #6175
This commit is contained in:
parent
6ee57c8bdd
commit
f7e72f4d5c
@ -2073,7 +2073,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||||||
my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc);
|
my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc);
|
||||||
|
|
||||||
if(config->hsts)
|
if(config->hsts)
|
||||||
my_setopt_bitmask(curl, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE);
|
my_setopt_str(curl, CURLOPT_HSTS, config->hsts);
|
||||||
|
|
||||||
#ifdef USE_METALINK
|
#ifdef USE_METALINK
|
||||||
if(!metalink && config->use_metalink) {
|
if(!metalink && config->use_metalink) {
|
||||||
|
Loading…
Reference in New Issue
Block a user