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
+4 -2
View File
@@ -992,6 +992,7 @@ class GraphHelper {
* @param string $user
* @param string $password
* @param string $spaceId
* @param string $xRequestId
*
* @return ResponseInterface
* @throws GuzzleException
@@ -1000,13 +1001,14 @@ class GraphHelper {
string $baseUrl,
string $user,
string $password,
string $spaceId
string $spaceId,
string $xRequestId
): ResponseInterface {
$url = self::getFullUrl($baseUrl, 'drives/' . $spaceId);
$header = ["restore" => true];
$body = '{}';
return HttpRequestHelper::sendRequest($url, '', 'PATCH', $user, $password, $header, $body);
return HttpRequestHelper::sendRequest($url, $xRequestId, 'PATCH', $user, $password, $header, $body);
}
/**