Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
:octocat: OAuthProvider::request(): added $protocolVersion parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jul 27, 2023
1 parent ccc3622 commit 8678d3b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Core/OAuthProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ public function request(
array $params = null,
string $method = null,
StreamInterface|array|string $body = null,
array $headers = null
array $headers = null,
string $protocolVersion = null
):ResponseInterface{
$request = $this->requestFactory->createRequest(($method ?? 'GET'), $this->getRequestURL($path, $params));

Expand All @@ -269,6 +270,10 @@ public function request(
;
}

if($protocolVersion !== null){
$request = $request->withProtocolVersion($protocolVersion);
}

return $this->sendRequest($request);
}

Expand Down

0 comments on commit 8678d3b

Please sign in to comment.