summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-10-15 16:42:39 +0200
committerMax Kellermann <max@musicpd.org>2019-10-15 16:42:39 +0200
commitf0386459ee5759fe1ff54eacc34525b03901ba6b (patch)
treedc8b43d5529e02757447134b52801db20c21fa78 /src
parente98d4670b84a604c7ab967e7fcd0a1e35bbc8229 (diff)
storage/curl: follow redirects for collections without trailing slash
Diffstat (limited to 'src')
-rw-r--r--src/storage/plugins/CurlStorage.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx
index 13150d920..581a0cca4 100644
--- a/src/storage/plugins/CurlStorage.cxx
+++ b/src/storage/plugins/CurlStorage.cxx
@@ -259,6 +259,8 @@ public:
CommonExpatParser(ExpatNamespaceSeparator{'|'})
{
request.SetOption(CURLOPT_CUSTOMREQUEST, "PROPFIND");
+ request.SetOption(CURLOPT_FOLLOWLOCATION, 1l);
+ request.SetOption(CURLOPT_MAXREDIRS, 1l);
request_headers.Append(StringFormat<40>("depth: %u", depth));