Skip to content

Commit

Permalink
Merge pull request #2361 from koying/fixdavdirectoryexist
Browse files Browse the repository at this point in the history
FIX: in CDAVDirectory::Exists, using PROPFIND without depth might return 403
  • Loading branch information
elupus committed Mar 2, 2013
2 parents 932a245 + 67a555f commit 1e3734e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/filesystem/DAVDirectory.cpp
Expand Up @@ -219,6 +219,7 @@ bool CDAVDirectory::Exists(const char* strPath)
// on the server's configuration // on the server's configuration
CStdString strRequest = "PROPFIND"; CStdString strRequest = "PROPFIND";
dav.SetCustomRequest(strRequest); dav.SetCustomRequest(strRequest);
dav.SetRequestHeader("depth", 0);


CURL url(strPath); CURL url(strPath);
return dav.Exists(url); return dav.Exists(url);
Expand Down

0 comments on commit 1e3734e

Please sign in to comment.