aboutsummaryrefslogtreecommitdiffstats
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-09-11 13:33:50 -0700
committerHaibo Huang <hhb@google.com>2019-09-13 17:10:15 -0700
commit445085ad1110e215636704c9530ba16ae3e87329 (patch)
tree188fe35e9e36175e8c9e544b7d48b8cbac8b1907 /lib/getinfo.c
parente45b87230b7f4e37d29d2d29847415e1d1e5defa (diff)
downloadexternal_curl-445085ad1110e215636704c9530ba16ae3e87329.tar.gz
external_curl-445085ad1110e215636704c9530ba16ae3e87329.tar.bz2
external_curl-445085ad1110e215636704c9530ba16ae3e87329.zip
Upgrade curl to curl-7_66_0
Test: None Change-Id: I3b08841f93c0f51cca6ec168fe43b891f2ad58f1
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index e118da80..2b8f2303 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;
@@ -243,7 +246,6 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
case CURLINFO_PROTOCOL:
*param_longp = data->info.conn_protocol;
break;
-
default:
return CURLE_UNKNOWN_OPTION;
}
@@ -301,7 +303,9 @@ static CURLcode getinfo_offt(struct Curl_easy *data, CURLINFO info,
case CURLINFO_REDIRECT_TIME_T:
*param_offt = data->progress.t_redirect;
break;
-
+ case CURLINFO_RETRY_AFTER:
+ *param_offt = data->info.retry_after;
+ break;
default:
return CURLE_UNKNOWN_OPTION;
}