storage/curl: follow redirects for collections without trailing slash

This commit is contained in:
Max Kellermann
2019-10-15 16:42:39 +02:00
parent e98d4670b8
commit f0386459ee
2 changed files with 3 additions and 0 deletions

View File

@@ -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));