diff options
author | Max Kellermann <max@duempel.org> | 2008-11-30 13:06:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-30 13:06:21 +0100 |
commit | 655ba6a637b218d22adf5f4f3fe38c8a737dd62e (patch) | |
tree | ad5ff269c9194cccb922e71e5169cf76f5a63ed0 | |
parent | 422c17ceae89318fa18a608c79ce860e3aff3ee2 (diff) | |
download | mpd-655ba6a637b218d22adf5f4f3fe38c8a737dd62e.tar.gz mpd-655ba6a637b218d22adf5f4f3fe38c8a737dd62e.tar.xz mpd-655ba6a637b218d22adf5f4f3fe38c8a737dd62e.zip |
input_curl: follow HTTP redirects
Follow HTTP redirects, but no more than 5.
Diffstat (limited to '')
-rw-r--r-- | src/input_curl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_curl.c b/src/input_curl.c index a97b39e3c..eb2550c6d 100644 --- a/src/input_curl.c +++ b/src/input_curl.c @@ -469,6 +469,8 @@ 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_FOLLOWLOCATION, 1); + curl_easy_setopt(c->easy, CURLOPT_MAXREDIRS, 5); curl_easy_setopt(c->easy, CURLOPT_FAILONERROR, true); curl_easy_setopt(c->easy, CURLOPT_ERRORBUFFER, c->error); |