[test-only] Api test. Checking X-Request-Id in response header (#6765)

* check X-Request-Id in response header

* style
This commit is contained in:
Viktor Scharf
2023-07-12 09:11:55 +02:00
committed by GitHub
parent f2498e1fdf
commit 3009ea192f
8 changed files with 33 additions and 4 deletions
+2 -1
View File
@@ -201,7 +201,8 @@ class WebDavHelper {
if ($folderDepth !== '0' && $folderDepth !== '1' && $folderDepth !== 'infinity') {
throw new InvalidArgumentException('Invalid depth value ' . $folderDepth);
}
$headers = ['Depth' => $folderDepth];
$headers['Depth'] = $folderDepth;
$headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();
return self::makeDavRequest(
$baseUrl,
$user,