Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@elupus elupus authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  xbmc/filesystem/DAVDirectory.cpp
View
1  xbmc/filesystem/DAVDirectory.cpp
@@ -219,6 +219,7 @@ bool CDAVDirectory::Exists(const char* strPath)
// on the server's configuration
CStdString strRequest = "PROPFIND";
dav.SetCustomRequest(strRequest);
+ dav.SetRequestHeader("depth", 0);
CURL url(strPath);
return dav.Exists(url);
Please sign in to comment.
Something went wrong with that request. Please try again.