summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-07-30 17:59:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-30 19:04:41 (GMT)
commit644de29e220de7441e51a29bf512278b3de0bbe1 (patch)
tree3a1a5d091aea295ce7698035e918ac81384851e5 /http.h
parent013c7e2b070f5b69d6585b0c18426a959f1bf739 (diff)
downloadgit-644de29e220de7441e51a29bf512278b3de0bbe1.zip
git-644de29e220de7441e51a29bf512278b3de0bbe1.tar.gz
git-644de29e220de7441e51a29bf512278b3de0bbe1.tar.bz2
http: drop support for curl < 7.19.4
In the last commit we dropped support for curl < 7.16.0, let's continue that and drop support for versions older than 7.19.3. This allows us to simplify the code by getting rid of some "#ifdef"'s. Git was broken with vanilla curl < 7.19.4 from v2.12.0 until v2.15.0. Compiling with it was broken by using CURLPROTO_* outside any "#ifdef" in aeae4db174 (http: create function to get curl allowed protocols, 2016-12-14), and fixed in v2.15.0 in f18777ba6ef (http: fix handling of missing CURLPROTO_*, 2017-08-11). It's unclear how much anyone was impacted by that in practice, since as noted in [1] RHEL versions using curl older than that still compiled, because RedHat backported some features. Perhaps other vendors did the same. Still, it's one datapoint indicating that it wasn't in active use at the time. That (the v2.12.0 release) was in Feb 24, 2017, with v2.15.0 on Oct 30, 2017, it's now mid-2021. 1. http://lore.kernel.org/git/c8a2716d-76ac-735c-57f9-175ca3acbcb0@jupiterrise.com; followed-up by f18777ba6ef (http: fix handling of missing CURLPROTO_*, 2017-08-11) Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.h')
-rw-r--r--http.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/http.h b/http.h
index cb09262..19f19db 100644
--- a/http.h
+++ b/http.h
@@ -12,10 +12,6 @@
#define DEFAULT_MAX_REQUESTS 5
-#if LIBCURL_VERSION_NUM == 0x071000
-#define NO_CURL_EASY_DUPHANDLE
-#endif
-
/*
* CURLOPT_USE_SSL was known as CURLOPT_FTP_SSL up to 7.16.4,
* and the constants were known as CURLFTPSSL_*