diff options
author | Joakim Plate <elupus@ecce.se> | 2013-03-02 08:03:51 -0800 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2013-03-02 08:03:51 -0800 |
commit | 1e3734e8059016d783018a90cea5395ca3db342e (patch) | |
tree | 60cf02df3a1e195c6bff849b581c713d51b4bb75 | |
parent | 932a245729415fd1f29a4a9aaf407e7e8de5f088 (diff) | |
parent | 67a555f0cb1e778e233ff95c1f551d1263319390 (diff) |
Merge pull request #2361 from koying/fixdavdirectoryexist
FIX: in CDAVDirectory::Exists, using PROPFIND without depth might return 403
-rw-r--r-- | xbmc/filesystem/DAVDirectory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/filesystem/DAVDirectory.cpp b/xbmc/filesystem/DAVDirectory.cpp index c785ccf168..148b2622dc 100644 --- a/xbmc/filesystem/DAVDirectory.cpp +++ b/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); |