1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 16:45:06 -05:00

setopt: error on CURLOPT_HTTP09_ALLOWED set true with Hyper

Not supported.

Closes #6727
This commit is contained in:
Daniel Stenberg 2021-03-11 15:37:14 +01:00
parent 25837e32b0
commit 32a71333d4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -906,7 +906,13 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
arg = va_arg(param, unsigned long);
if(arg > 1L)
return CURLE_BAD_FUNCTION_ARGUMENT;
#ifdef USE_HYPER
/* Hyper does not support HTTP/0.9 */
if(arg)
return CURLE_BAD_FUNCTION_ARGUMENT;
#else
data->set.http09_allowed = arg ? TRUE : FALSE;
#endif
break;
#endif /* CURL_DISABLE_HTTP */