summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Analytics.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-06-19 12:54:40 +0200
committerPierre Bourdon <delroth@gmail.com>2016-06-19 12:54:40 +0200
commitb8496fc844f75f9479c53cc3420acd6818e27fd3 (patch)
tree55b16ba9d3c4350d8823fd481adf4ceb0b95d6ee /Source/Core/Common/Analytics.cpp
parentd9b687f5e2f1bc4d070363c4acdef9894326468e (diff)
analytics: Disable ALPN only on Windows.
Diffstat (limited to 'Source/Core/Common/Analytics.cpp')
-rw-r--r--Source/Core/Common/Analytics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Analytics.cpp b/Source/Core/Common/Analytics.cpp
index 324748936d..29359cc815 100644
--- a/Source/Core/Common/Analytics.cpp
+++ b/Source/Core/Common/Analytics.cpp
@@ -203,8 +203,10 @@ HttpAnalyticsBackend::HttpAnalyticsBackend(const std::string& endpoint)
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &DummyCurlWriteFunction);
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 3000);
+#ifdef _WIN32
// ALPN support is enabled by default but requires Windows >= 8.1.
curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, false);
+#endif
m_curl = curl;
}