Skip to content

Commit

Permalink
fix the name of ratelimit header returned from API
Browse files Browse the repository at this point in the history
x-ratelimit-remaining instead of X-Ratelimit-Remaining
  • Loading branch information
iainmullan authored Apr 29, 2017
1 parent 6ba3719 commit feecbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ protected function _makeCall($function, $auth = false, $params = null, $method =
$headers = $this->processHeaders($headerContent);

// get the 'X-Ratelimit-Remaining' header value
$this->_xRateLimitRemaining = $headers['X-Ratelimit-Remaining'];
$this->_xRateLimitRemaining = $headers['x-ratelimit-remaining'];

if (!$jsonData) {
throw new InstagramException('Error: _makeCall() - cURL error: ' . curl_error($ch));
Expand Down

0 comments on commit feecbae

Please sign in to comment.