diff options
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 1a72edf3e..764caa203 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1278,7 +1278,10 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ case 'b': switch(subletter) { case 'a': /* --alt-svc */ - GetStr(&config->altsvc, nextarg); + if(curlinfo->features & CURL_VERSION_ALTSVC) + GetStr(&config->altsvc, nextarg); + else + return PARAM_LIBCURL_DOESNT_SUPPORT; break; default: /* --cookie string coming up: */ if(nextarg[0] == '@') { |