Skip to content
This repository
Browse code

Merge pull request #2361 from koying/fixdavdirectoryexist

FIX: in CDAVDirectory::Exists, using PROPFIND without depth might return 403
  • Loading branch information...
commit 1e3734e8059016d783018a90cea5395ca3db342e 2 parents 932a245 + 67a555f
Joakim Plate authored March 02, 2013

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  xbmc/filesystem/DAVDirectory.cpp
1  xbmc/filesystem/DAVDirectory.cpp
@@ -219,6 +219,7 @@ bool CDAVDirectory::Exists(const char* strPath)
219 219
   // on the server's configuration
220 220
   CStdString strRequest = "PROPFIND";
221 221
   dav.SetCustomRequest(strRequest);
  222
+  dav.SetRequestHeader("depth", 0);
222 223
 
223 224
   CURL url(strPath);
224 225
   return dav.Exists(url);

0 notes on commit 1e3734e

Please sign in to comment.
Something went wrong with that request. Please try again.