We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c64e60 + 1413f07 commit 3aa2d6fCopy full SHA for 3aa2d6f
1 file changed
lib/Github/HttpClient/Listener/ErrorListener.php
@@ -43,7 +43,8 @@ public function postSend(RequestInterface $request, MessageInterface $response)
43
/** @var $response \Github\HttpClient\Message\Response */
44
if ($response->isClientError() || $response->isServerError()) {
45
$remaining = $response->getHeader('X-RateLimit-Remaining');
46
- if (null !== $remaining && 1 > $remaining) {
+
47
+ if (null !== $remaining && 1 > $remaining && 'rate_limit' !== substr($request->getResource(), 1, 10)) {
48
throw new ApiLimitExceedException($this->options['api_limit']);
49
}
50
0 commit comments