aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-06 06:36:25 +0100
committerMax Kellermann <max@duempel.org>2008-11-06 06:36:25 +0100
commita8e81326d05892fb6b753c518412e73b7cad3ebe (patch)
tree90a1566ea317591525f68461f8aa8f36797525ad /src
parent91c1a279e4015f99c6013ac6da8b7b134c3c8e83 (diff)
downloadmpd-a8e81326d05892fb6b753c518412e73b7cad3ebe.tar.gz
mpd-a8e81326d05892fb6b753c518412e73b7cad3ebe.tar.xz
mpd-a8e81326d05892fb6b753c518412e73b7cad3ebe.zip
input_curl: enable FAILONERROR
I had this option enabled during development, but at some point, it must have gotten lost. FAILONERROR makes the curl stream fail when the server returns a status code 400 or higher. We are not interested in the server's error document.
Diffstat (limited to '')
-rw-r--r--src/input_curl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_curl.c b/src/input_curl.c
index 50c837fdb..2d563a6eb 100644
--- a/src/input_curl.c
+++ b/src/input_curl.c
@@ -452,6 +452,7 @@ input_curl_easy_init(struct input_stream *is)
input_curl_writefunction);
curl_easy_setopt(c->easy, CURLOPT_WRITEDATA, is);
curl_easy_setopt(c->easy, CURLOPT_HTTP200ALIASES, http_200_aliases);
+ curl_easy_setopt(c->easy, CURLOPT_FAILONERROR, true);
code = curl_easy_setopt(c->easy, CURLOPT_URL, c->url);
if (code != CURLE_OK)