send X-Request-Id in header of every request (#7238)

This commit is contained in:
Prajwol Amatya
2023-09-07 10:33:44 +05:45
committed by GitHub
parent ac5270b3c6
commit 620b44c90a
15 changed files with 86 additions and 65 deletions
@@ -64,7 +64,6 @@ class SearchContext implements Context {
$user = $this->featureContext->getActualUsername($user);
$baseUrl = $this->featureContext->getBaseUrl();
$password = $this->featureContext->getPasswordForUser($user);
$headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();
$body
= "<?xml version='1.0' encoding='utf-8' ?>\n" .
" <oc:search-files xmlns:a='DAV:' xmlns:oc='http://owncloud.org/ns' >\n" .
@@ -103,7 +102,7 @@ class SearchContext implements Context {
$password,
"REPORT",
"/",
$headers,
null,
$this->featureContext->getStepLineRef(),
$body,
$this->featureContext->getDavPathVersion()