Commit 5cd86e27 authored by Max Kellermann's avatar Max Kellermann

input/curl: disable `CURLOPT_FAILONERROR`

Let OnHeaders() check the status. The status checking code was added by commit 4f021cbc in 2011, but in 2008, commit a8e81326 enabled `CURLOPT_FAILONERROR`, which means the status checking code never had any effect. This allows `LoadExcludeListOrLog()` to hide boring "404 Not Found" log messages via `IsFileNotFound()`.
parent 740cbe9e
ver 0.23.13 (not yet released) ver 0.23.13 (not yet released)
* input * input
- curl: fix busy loop after connection failed - curl: fix busy loop after connection failed
- curl: hide "404" log messages for non-existent ".mpdignore" files
* archive * archive
- zzip: fix crash bug - zzip: fix crash bug
* database * database
......
...@@ -417,7 +417,6 @@ CurlInputStream::InitEasy() ...@@ -417,7 +417,6 @@ CurlInputStream::InitEasy()
request->SetOption(CURLOPT_HTTP200ALIASES, http_200_aliases); request->SetOption(CURLOPT_HTTP200ALIASES, http_200_aliases);
request->SetOption(CURLOPT_FOLLOWLOCATION, 1L); request->SetOption(CURLOPT_FOLLOWLOCATION, 1L);
request->SetOption(CURLOPT_MAXREDIRS, 5L); request->SetOption(CURLOPT_MAXREDIRS, 5L);
request->SetOption(CURLOPT_FAILONERROR, 1L);
/* this option eliminates the probe request when /* this option eliminates the probe request when
username/password are specified */ username/password are specified */
......
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