Commit 4dd10894 authored by Thomas Guillem's avatar Thomas Guillem Committed by Max Kellermann

lib/curl/Request: fix Exception "error" on Android

Apparently, it's not possible to change CURLOPT_NETRC on Android.
parent 608d7ec1
ver 0.21.22 (not yet released) ver 0.21.22 (not yet released)
* input
- curl: fix streaming errors on Android
* playlist * playlist
- rss: support MIME type application/xml - rss: support MIME type application/xml
* mixer * mixer
......
...@@ -56,7 +56,9 @@ CurlRequest::CurlRequest(CurlGlobal &_global, ...@@ -56,7 +56,9 @@ CurlRequest::CurlRequest(CurlGlobal &_global,
easy.SetUserAgent("Music Player Daemon " VERSION); easy.SetUserAgent("Music Player Daemon " VERSION);
easy.SetHeaderFunction(_HeaderFunction, this); easy.SetHeaderFunction(_HeaderFunction, this);
easy.SetWriteFunction(WriteFunction, this); easy.SetWriteFunction(WriteFunction, this);
#ifndef ANDROID
easy.SetOption(CURLOPT_NETRC, 1L); easy.SetOption(CURLOPT_NETRC, 1L);
#endif
easy.SetErrorBuffer(error_buffer); easy.SetErrorBuffer(error_buffer);
easy.SetNoProgress(); easy.SetNoProgress();
easy.SetNoSignal(); easy.SetNoSignal();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment