From fdbb3b1dedfdd3e01ec6c5f904b0be65972a1ba4 Mon Sep 17 00:00:00 2001 From: wsnipex Date: Mon, 10 Jun 2019 10:12:20 +0200 Subject: [PATCH] fixed: webdav over http2 --- xbmc/filesystem/DAVDirectory.cpp | 2 +- xbmc/filesystem/DAVFile.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/filesystem/DAVDirectory.cpp b/xbmc/filesystem/DAVDirectory.cpp index e5157a1377611..c3fda928c9eea 100644 --- a/xbmc/filesystem/DAVDirectory.cpp +++ b/xbmc/filesystem/DAVDirectory.cpp @@ -47,7 +47,7 @@ void CDAVDirectory::ParseResponse(const TiXmlElement *pElement, CFileItem &item) else if (CDAVCommon::ValueWithoutNamespace(pResponseChild, "propstat")) { - if (CDAVCommon::GetStatusTag(pResponseChild->ToElement()) == "HTTP/1.1 200 OK") + if (CDAVCommon::GetStatusTag(pResponseChild->ToElement()).find("200 OK") != std::string::npos) { /* Iterate propstat children elements */ for (pPropstatChild = pResponseChild->FirstChild(); pPropstatChild != 0; pPropstatChild = pPropstatChild->NextSibling()) diff --git a/xbmc/filesystem/DAVFile.cpp b/xbmc/filesystem/DAVFile.cpp index c9d5cb74340dd..ebf715756278d 100644 --- a/xbmc/filesystem/DAVFile.cpp +++ b/xbmc/filesystem/DAVFile.cpp @@ -74,7 +74,7 @@ bool CDAVFile::Execute(const CURL& url) { std::string sRetCode = CDAVCommon::GetStatusTag(pChild->ToElement()); CRegExp rxCode; - rxCode.RegComp("HTTP/1\\.1\\s(\\d+)\\s.*"); + rxCode.RegComp("HTTP/.+\\s(\\d+)\\s.*"); if (rxCode.RegFind(sRetCode) >= 0) { if (rxCode.GetSubCount())