]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
http: add support selecting http version
authorForce Charlie <charlieio@outlook.com>
Fri, 9 Nov 2018 03:44:14 +0000 (19:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Nov 2018 04:21:24 +0000 (13:21 +0900)
commitd73019feb44b9cb89d9967fb36eae809e8146ace
treeac3e13db99453718f2501f96da081a36d9557850
parent8858448bb49332d353febc078ce4a3abcc962efe
http: add support selecting http version

Usually we don't need to set libcurl to choose which version of the
HTTP protocol to use to communicate with a server.
But different versions of libcurl, the default value is not the same.

CURL >= 7.62.0: CURL_HTTP_VERSION_2TLS
CURL < 7.62: CURL_HTTP_VERSION_1_1

In order to give users the freedom to control the HTTP version,
we need to add a setting to choose which HTTP version to use.

Signed-off-by: Force Charlie <charlieio@outlook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
http.c