From 3f3e0739c4df2454118ca5bd114525d031b28840 Mon Sep 17 00:00:00 2001 From: tpoeiras Date: Wed, 21 Feb 2018 20:15:28 -0300 Subject: [PATCH] Fix curl storage plugin failure if the authentication method is different than basic. --- NEWS | 2 ++ src/lib/curl/Request.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ff296191a..e54deb58c 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.20.18 (not yet released) +* input + - curl: allow authentication methods other than "Basic" * decoder - flac: improve seeking precision * fix gapless CUE song transitions diff --git a/src/lib/curl/Request.cxx b/src/lib/curl/Request.cxx index d8301cbba..e0f4c67f9 100644 --- a/src/lib/curl/Request.cxx +++ b/src/lib/curl/Request.cxx @@ -62,6 +62,7 @@ CurlRequest::CurlRequest(CurlGlobal &_global, const char *url, easy.SetOption(CURLOPT_NOPROGRESS, 1l); easy.SetOption(CURLOPT_NOSIGNAL, 1l); easy.SetOption(CURLOPT_CONNECTTIMEOUT, 10l); + easy.SetOption(CURLOPT_HTTPAUTH, (long) CURLAUTH_ANY); easy.SetOption(CURLOPT_URL, url); }