diff options
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/http3-present.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/http3-present.c b/docs/examples/http3-present.c index 390cef727..857952dc7 100644 --- a/docs/examples/http3-present.c +++ b/docs/examples/http3-present.c @@ -30,16 +30,16 @@ int main(void) { curl_version_info_data *ver; - curl_global_init(); + curl_global_init(CURL_GLOBAL_ALL); ver = curl_version_info(CURLVERSION_NOW); - if(ver->flags & CURL_VERSION_HTTP2) + if(ver->features & CURL_VERSION_HTTP2) printf("HTTP/2 support is present\n"); - if(ver->flags & CURL_VERSION_HTTP3) + if(ver->features & CURL_VERSION_HTTP3) printf("HTTP/3 support is present\n"); - if(ver->flags & CURL_VERSION_ALTSVC) + if(ver->features & CURL_VERSION_ALTSVC) printf("Alt-svc support is present\n"); curl_global_cleanup(); |