diff options
author | Max Kellermann <max@duempel.org> | 2013-11-23 12:02:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-23 12:02:39 +0100 |
commit | 2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd (patch) | |
tree | cb17100ffd4c650420ef07f043950466ea2ece18 /src/input | |
parent | fc7d5b055d98306af0c882282902a23e963f026d (diff) | |
download | mpd-2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd.tar.gz mpd-2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd.tar.xz mpd-2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd.zip |
input/curl: dump version number
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/CurlInputPlugin.cxx | 8 |
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 ¶m, 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"); |