Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita378736

Browse files
nikita2206scarbo87
authored andcommitted
Let's not leave all the work to LimitingMiddleware in ResponseValidatingMiddleware
1 parent503bc71 commita378736

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

‎src/Transport/Middleware/Impl/ResponseValidatingMiddleware.php‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ public function request(RequestInterface $request, HttpMiddlewareStack $stack, C
2020
$response =$stack->request($request,$context);
2121
$code =$response->getStatusCode();
2222

23-
// let's leave all the work with 429 to LimitingMiddleware
24-
if ($code === LimitingMiddleware::HTTP_STATUS_LIMIT_REACHED) {
25-
return$response;
26-
}
27-
2823
if ($code >=500 &&$code <600) {
2924
thrownewex\ServerErrorException("MyTarget:{$code} Server Error",$request,$response);
3025
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp