input/curl: disable CURLOPT_FAILONERROR
Let OnHeaders() check the status. The status checking code was added by commit4f021cbced
in 2011, but in 2008, commita8e81326d0
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()`.
This commit is contained in:
parent
740cbe9e02
commit
5cd86e272f
1
NEWS
1
NEWS
@ -1,6 +1,7 @@
|
||||
ver 0.23.13 (not yet released)
|
||||
* input
|
||||
- curl: fix busy loop after connection failed
|
||||
- curl: hide "404" log messages for non-existent ".mpdignore" files
|
||||
* archive
|
||||
- zzip: fix crash bug
|
||||
* database
|
||||
|
@ -417,7 +417,6 @@ CurlInputStream::InitEasy()
|
||||
request->SetOption(CURLOPT_HTTP200ALIASES, http_200_aliases);
|
||||
request->SetOption(CURLOPT_FOLLOWLOCATION, 1L);
|
||||
request->SetOption(CURLOPT_MAXREDIRS, 5L);
|
||||
request->SetOption(CURLOPT_FAILONERROR, 1L);
|
||||
|
||||
/* this option eliminates the probe request when
|
||||
username/password are specified */
|
||||
|
Loading…
Reference in New Issue
Block a user