Fix curl storage plugin failure if the authentication method is different than basic.

This commit is contained in:
tpoeiras 2018-02-21 20:15:28 -03:00 committed by Max Kellermann
parent ebed7e2147
commit 3f3e0739c4
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

@ -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

View File

@ -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);
}