From: Force Charlie <[email protected]>
Signed-off-by: Force Charlie <[email protected]>
---
http.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/http.c b/http.c
index b2ec31aef5..86e454cff5 100644
--- a/http.c
+++ b/http.c
@@ -811,10 +811,10 @@ static CURL *get_curl_handle(void)
curl_easy_setopt(result, CURLOPT_SSL_VERIFYHOST, 2);
}
-#if LIBCURL_VERSION_NUM >= 0x074700
+#if LIBCURL_VERSION_NUM >= 0x072f00 // 7.47.0
// curl_http_version 0 is default.
if (curl_http_version == 20) {
- /* Enable HTTP2 when request TLS*/
+ /* Enable HTTP2*/
curl_easy_setopt(result,
CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_2TLS);
} else if (curl_http_version == 11) {
curl_easy_setopt(result,
CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);
--
gitgitgadget