aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/CurlInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-23 12:02:17 +0100
committerMax Kellermann <max@duempel.org>2013-11-23 12:02:39 +0100
commit2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd (patch)
treecb17100ffd4c650420ef07f043950466ea2ece18 /src/input/CurlInputPlugin.cxx
parentfc7d5b055d98306af0c882282902a23e963f026d (diff)
downloadmpd-2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd.tar.gz
mpd-2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd.tar.xz
mpd-2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd.zip
input/curl: dump version number
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r--src/input/CurlInputPlugin.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx
index 841db6ceb..73c1fc4b7 100644
--- a/src/input/CurlInputPlugin.cxx
+++ b/src/input/CurlInputPlugin.cxx
@@ -586,6 +586,14 @@ input_curl_init(const config_param &param, Error &error)
return false;
}
+ const auto version_info = curl_version_info(CURLVERSION_FIRST);
+ if (version_info != nullptr) {
+ FormatDebug(curl_domain, "version %s", version_info->version);
+ if (version_info->features & CURL_VERSION_SSL)
+ FormatDebug(curl_domain, "with %s",
+ version_info->ssl_version);
+ }
+
http_200_aliases = curl_slist_append(http_200_aliases, "ICY 200 OK");
proxy = param.GetBlockValue("proxy");