http: create function to get curl allowed protocols
commitaeae4db1747d891dc3aee6a74508c585c321cc49
authorBrandon Williams <bmwill@google.com>
Wed, 14 Dec 2016 22:39:53 +0000 (14 14:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Dec 2016 17:29:13 +0000 (15 09:29 -0800)
tree8eb7374cd7af78c327a674687741a89d015188de
parentf1762d772e9b415a3163abf5f217fc3b71a3b40e
http: create function to get curl allowed protocols

Move the creation of an allowed protocols whitelist to a helper
function. This will be useful when we need to compute the set of
allowed protocols differently for normal and redirect cases.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c