summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-07 09:52:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-07 09:52:14 +0200
commit0f954c3777027455f4f602b56871d3e4ece9981f (patch)
treefa9f252b00e35ec98bcd4f12dd964280b26763e1
parent7fe5136832872bea413abbee8830f2d2539f1c15 (diff)
downloadcurl-bagder/http3.tar.gz
curl: have -w's 'http_version' show '3' for HTTP/3bagder/http3
-rw-r--r--src/tool_writeout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tool_writeout.c b/src/tool_writeout.c
index d5b0bc44f..27b2ac50d 100644
--- a/src/tool_writeout.c
+++ b/src/tool_writeout.c
@@ -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);