diff options
author | tpoeiras <thiagopoeirassilva@gmail.com> | 2018-02-21 20:15:28 -0300 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-24 21:59:13 +0100 |
commit | 3f3e0739c4df2454118ca5bd114525d031b28840 (patch) | |
tree | eef313acebdf9c75303b04616177f5025f72c8ba /src/lib/curl | |
parent | ebed7e214752b7aafad35113fc35e37b608e8837 (diff) |
Fix curl storage plugin failure if the authentication method is different than basic.
Diffstat (limited to 'src/lib/curl')
-rw-r--r-- | src/lib/curl/Request.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |