]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
http: fix handling of missing CURLPROTO_*
authorTom G. Christensen <tgc@jupiterrise.com>
Fri, 11 Aug 2017 16:37:33 +0000 (18:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Aug 2017 22:12:07 +0000 (15:12 -0700)
commitf18777ba6ef23c30c68d2d4799b6ba512785288f
tree505efbdc9537b8a142f9180a297ba13e8f456c55
parent4274c698f46a9bc45834c4904e7e113450c042fb
http: fix handling of missing CURLPROTO_*

Commit aeae4db1 refactored the handling of the curl protocol
restriction support into a function but failed to add a version
check for older versions of curl that lack CURLPROTO_* support.

Add the missing check and at the same time convert it to a feature
check instead of a version based check.  This is done to ensure that
vendor supported curl versions that have had CURLPROTO_* support
backported are handled correctly.

Signed-off-by: Tom G. Christensen <tgc@jupiterrise.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c