summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-13 16:48:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-13 16:48:03 +0200
commit30e6483763a05268dd8c3902b01491d2f18571be (patch)
tree12fd0abfb50b56a54cdded65c00d9d80275a43ab
parentcfde6a1d4e21abe43128c6a661be7866252c196c (diff)
downloadcurl-bagder/h3-examples.tar.gz
fixup http3-present.c problemsbagder/h3-examples
-rw-r--r--docs/examples/http3-present.c8
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();