]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl: have -w's 'http_version' show '3' for HTTP/3
authorDaniel Stenberg <daniel@haxx.se>
Wed, 7 Aug 2019 07:52:14 +0000 (09:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Aug 2019 10:51:52 +0000 (12:51 +0200)
Closes #4196

src/tool_writeout.c

index d5b0bc44f1e7c17e6e37a169c3087d5363f3cab7..27b2ac50df1e2b64fffdb10abefc830783f16732 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -314,6 +314,9 @@ void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo)
                   case CURL_HTTP_VERSION_2_0:
                     version = "2";
                     break;
+                  case CURL_HTTP_VERSION_3:
+                    version = "3";
+                    break;
                   }
 
                   fprintf(stream, version);