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

Commit

Permalink
PR suggested changes
Browse files Browse the repository at this point in the history
Signed-off-by: manishranjan-adobe <[email protected]>
  • Loading branch information
manishranjan-adobe committed Oct 23, 2024
1 parent 8c0ff7f commit 24fab99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function prepareOAuth()
$requestHeaders->addHeaders(['Authorization' => $oauthHeaderValue]);
break;
case OAuth::REQUEST_SCHEME_POSTBODY:
if ($this->getMethod() === HttpRequest::METHOD_GET) {
if ($this->oauthConfig->getRequestMethod() === HttpRequest::METHOD_GET) {
throw new Exception\RuntimeException(
'The client is configured to'
. ' pass OAuth parameters through a POST body but request method'
Expand Down

0 comments on commit 24fab99

Please sign in to comment.