diff --git a/src/Instagram.php b/src/Instagram.php index 1fb70f2..ff7a5ef 100644 --- a/src/Instagram.php +++ b/src/Instagram.php @@ -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));