diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-03 11:17:52 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-03-03 11:17:52 +0100 |
commit | c51c78dd8d93990d7168a7f6b2410ec437e66939 (patch) | |
tree | e45f94c2cf39634c0d4e9a871a13235cdc4d128e /src/tool_operate.c | |
parent | e1be8254534898fccafc5d6cd04f6235f283cfbd (diff) | |
download | curl-c51c78dd8d93990d7168a7f6b2410ec437e66939.tar.gz |
alt-svc: the curl command line bits
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index a8698285d..7f0748753 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1538,6 +1538,12 @@ static CURLcode operate_do(struct GlobalConfig *global, if(config->disallow_username_in_url) my_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, 1L); +#ifdef USE_ALTSVC + /* only if explicitly enabled in configure */ + if(config->altsvc) + my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc); +#endif + /* initialize retry vars for loop below */ retry_sleep_default = (config->retry_delay) ? config->retry_delay*1000L : RETRY_SLEEP_DEFAULT; /* ms */ |