{"thread":{"id":"38494","subject":"[PATCH] http: support curl < 7.10.7","startedAt":"2015-02-03T17:30:08Z","lastAt":"2015-02-03T17:30:08Z","messageCount":1,"participants":["Tom G. Christensen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"255579","messageId":"1422984608-3822-1-git-send-email-tgc@statsbiblioteket.dk","threadId":"38494","inReplyTo":null,"subject":"[PATCH] http: support curl < 7.10.7","fromName":"Tom G. Christensen","fromEmail":"tgc@statsbiblioteket.dk","sentAt":"2015-02-03T17:30:08Z","receivedAt":"2015-02-03T17:30:08Z","isPatch":true,"sender":{"key":"tgc@statsbiblioteket.dk","avatar":"https://avatars.githubusercontent.com/u/912180?v=4"},"body":"Commit dd61399 introduced support for http proxies that require\nauthentication but it relies on the CURL_PROXYAUTH option which was\nadded in curl 7.10.7.\nThis makes sure proxy authentication is only enabled if libcurl can\nsupport it.\n\nSigned-off-by: Tom G. Christensen <tgc@statsbiblioteket.dk>\n---\n\nRHEL3 ships with curl 7.10.6 so without this change it is not possible\nto build with http support.\n\n http.c | 2 ++\n 1 file changed, 2 insertions(+)\n\ndiff --git a/http.c b/http.c\nindex 040f362..4e4dd92 100644\n--- a/http.c\n+++ b/http.c\n@@ -369,7 +369,9 @@ static CURL *get_curl_handle(void)\n \n \tif (curl_http_proxy) {\n \t\tcurl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);\n+#if LIBCURL_VERSION_NUM >= 0x070a07\n \t\tcurl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);\n+#endif\n \t}\n \n \tset_curl_keepalive(result);\n-- \n2.2.2\n"}]}