add more CORS tests (#8254)

This commit is contained in:
Viktor Scharf
2024-01-24 19:25:20 +01:00
committed by GitHub
parent 8c966a81cb
commit ee6f155e1c
3 changed files with 83 additions and 7 deletions
+3 -1
View File
@@ -179,6 +179,7 @@ class WebDavHelper {
* @param string|null $type
* @param int|null $davPathVersionToUse
* @param string|null $doDavRequestAsUser
* @param array|null $headers
*
* @return ResponseInterface
* @throws Exception
@@ -194,7 +195,8 @@ class WebDavHelper {
?string $folderDepth = '1',
?string $type = "files",
?int $davPathVersionToUse = self::DAV_VERSION_NEW,
?string $doDavRequestAsUser = null
?string $doDavRequestAsUser = null,
?array $headers = []
):ResponseInterface {
$body = self::getBodyForPropfind($properties);
$folderDepth = (string) $folderDepth;