http: don't hardcode the value of CURL_SOCKOPT_OK
commit32da6e6dafb1db563b6fa1ec80a21d58268e4ad1
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 13 Sep 2021 14:51:29 +0000 (13 16:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Sep 2021 17:39:04 +0000 (13 10:39 -0700)
tree255f422f6bd3366b887941438e4e990d803960e4
parente4ff3b67c2ad854113331029dea9843928a9c5ae
http: don't hardcode the value of CURL_SOCKOPT_OK

Use the new git-curl-compat.h header to define CURL_SOCKOPT_OK to its
known value if we're on an older curl version that doesn't have it. It
was hardcoded in http.c in a15d069a198 (http: enable keepalive on TCP
sockets, 2013-10-12).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-curl-compat.h
http.c