Skip to content

Commit

Permalink
TASK: Transfer status code from inner response on error
Browse files Browse the repository at this point in the history
close: #10
  • Loading branch information
daniellienert committed Jun 15, 2020
1 parent 4eafb3d commit 5eaef5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Controller/OAuthServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ public function accessTokenAction(): string
if (is_array($data)) {
$this->logger->debug('OAuth token data', $data + LogEnvironment::fromMethodName(__METHOD__));
}
} else {
$this->response->setStatusCode($response->getStatusCode());
}

return $bodyContent;
Expand Down

0 comments on commit 5eaef5d

Please sign in to comment.