From 1cc97ba6e42820ad0d8d69ba101b3b830aa1316d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Feb 2020 17:32:55 +0100 Subject: curl: error on --alt-svc use w/o support Make the tool check for alt-svc support at run-time and return error accordingly if not present when the option is used. Reported-by: Harry Sintonen Closes #4878 --- src/tool_operate.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/tool_operate.c') diff --git a/src/tool_operate.c b/src/tool_operate.c index 2855f0f8f..4b3caa80c 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1966,11 +1966,8 @@ static CURLcode single_transfer(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 #ifdef USE_METALINK if(!metalink && config->use_metalink) { -- cgit v1.2.3