Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixed: For Webdav set the PROPFIND custom request header else we may ret... #2132

Merged
merged 1 commit into from

2 participants

@arnova
Collaborator

...urn false when checking for folder existence (fixes #13914). @elupus / @vdrfan: Please comment/review.

arnova fixed: For Webdav set the PROPFIND custom request header else we may …
…return false when checking for folder existence (fixes #13914)
b3e3248
@arnova
Collaborator

@elupus / @vdrfan / @koying : I'm pretty sure this change is ok. Any (last) comments?

@koying
Collaborator

NC from me

@arnova arnova merged commit 0b1b21c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 28, 2013
  1. fixed: For Webdav set the PROPFIND custom request header else we may …

    arnova authored
    …return false when checking for folder existence (fixes #13914)
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/filesystem/DAVDirectory.cpp
View
6 xbmc/filesystem/DAVDirectory.cpp
@@ -250,6 +250,12 @@ bool CDAVDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items
bool CDAVDirectory::Exists(const char* strPath)
{
CCurlFile dav;
+
+ // Set the PROPFIND custom request else we may not find folders, depending
+ // on the server's configuration
+ CStdString strRequest = "PROPFIND";
+ dav.SetCustomRequest(strRequest);
+
CURL url(strPath);
return dav.Exists(url);
}
Something went wrong with that request. Please try again.