file-updater: Only use SSL ALPN opt if curl version up to date

This commit is contained in:
jp9000 2016-04-23 08:17:47 -07:00
parent bc38427862
commit 672d0b3716

View File

@ -124,8 +124,10 @@ static bool do_http_request(struct update_info *info, const char *url,
curl_easy_setopt(info->curl, CURLOPT_HEADERDATA, info);
}
#if LIBCURL_VERSION_NUM >= 0x072400
// A lot of servers don't yet support ALPN
curl_easy_setopt(info->curl, CURLOPT_SSL_ENABLE_ALPN, 0);
#endif
code = curl_easy_perform(info->curl);
if (code != CURLE_OK) {