diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-07 09:49:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-07 12:51:52 +0200 |
commit | fd00e14adb11ee1ec4f39e01ce25041c7f4316b5 (patch) | |
tree | 950782aacfd3171610e9feddd0412e71de751eeb /lib/getinfo.c | |
parent | 1f145b02d95f42ffba23fa6ea6a867aeba3cbdc1 (diff) | |
download | curl-fd00e14adb11ee1ec4f39e01ce25041c7f4316b5.tar.gz |
curl.h: add CURL_HTTP_VERSION_3 to the version enum
It can't be set for CURLOPT_HTTP_VERSION, but it can be extracted with
CURLINFO_HTTP_VERSION.
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index e118da80d..5fd8dc018 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -235,6 +235,9 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info, case 20: *param_longp = CURL_HTTP_VERSION_2_0; break; + case 30: + *param_longp = CURL_HTTP_VERSION_3; + break; default: *param_longp = CURL_HTTP_VERSION_NONE; break; |