From: Daniel Stenberg Date: Thu, 11 Mar 2021 14:37:14 +0000 (+0100) Subject: setopt: error on CURLOPT_HTTP09_ALLOWED set true with Hyper X-Git-Tag: curl-7_76_0~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32a71333d4dff782fbf6be8b48e04e1aa1e0450b;p=thirdparty%2Fcurl.git setopt: error on CURLOPT_HTTP09_ALLOWED set true with Hyper Not supported. Closes #6727 --- diff --git a/lib/setopt.c b/lib/setopt.c index a1666a4e03..e13bf2e372 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -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 */