Skip to content

Commit

Permalink
Merge pull request #6 from dotkernel/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
n3vrax authored Mar 19, 2017
2 parents 9fc8ee9 + 2669d27 commit 961d089
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 0.2.2 - 2017-03-19

### Changed
* returning a response with unauthorized status code does not triggers the UnauthorizedHandler anymore

### Added
* Nothing

### Deprecated
* Nothing

### Removed
* Nothing

### Fixed
* Nothing


## 0.2.1 - 2017-03-19

### Changed
Expand Down
8 changes: 0 additions & 8 deletions src/ErrorHandler/UnauthorizedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ public function process(ServerRequestInterface $request, DelegateInterface $dele
{
try {
$response = $delegate->process($request);

if (in_array($response->getStatusCode(), $this->statusCodes)) {
return $this->handleUnauthorizedError(
$this->options->getMessagesOptions()->getMessage(MessagesOptions::UNAUTHORIZED),
$request,
$response
);
}
return $response;
} catch (UnauthorizedException $e) {
return $this->handleUnauthorizedError($e, $request);
Expand Down

0 comments on commit 961d089

Please sign in to comment.