diff options
author | Force Charlie <charlieio@outlook.com> | 2018-11-08 19:44:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-09 13:21:24 +0900 |
commit | d73019feb44b9cb89d9967fb36eae809e8146ace (patch) | |
tree | ac3e13db99453718f2501f96da081a36d9557850 /Documentation | |
parent | Ninth batch for 2.20 (diff) | |
download | tgif-d73019feb44b9cb89d9967fb36eae809e8146ace.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 41a9ff2b6a..f397942128 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1935,6 +1935,15 @@ http.saveCookies:: If set, store cookies received during requests to the file specified by http.cookieFile. Has no effect if http.cookieFile is unset. +http.version:: + Use the specified HTTP protocol version when communicating with a server. + If you want to force the default. The available and default version depend + on libcurl. Actually the possible values of + this option are: + + - HTTP/2 + - HTTP/1.1 + http.sslVersion:: The SSL version to use when negotiating an SSL connection, if you want to force the default. The available and default version |