Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
Fix returning of 429 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbroberg committed Apr 17, 2018
1 parent b2a3b32 commit d2d419c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ private function request($shard, $endpoint)

if ($statusCode == 429) {
throw new TooManyRequestsException(
$response->getHeader('x-ratelimit-limit'),
$response->getHeader('x-ratelimit-remaining'),
$response->getHeader('x-ratelimit-reset')
$response->getHeaderLine('x-ratelimit-limit'),
$response->getHeaderLine('x-ratelimit-remaining'),
$response->getHeaderLine('x-ratelimit-reset')
);
}

Expand Down

0 comments on commit d2d419c

Please sign in to comment.