diff --git a/src/Connect.php b/src/Connect.php index 09de4c9..be1e7ca 100644 --- a/src/Connect.php +++ b/src/Connect.php @@ -195,9 +195,9 @@ public function getLogLocation() */ public function setRateVars($header) { - $this->rate_remain = $header['RateLimit-Remaining']; - $this->rate_reset = $header['RateLimit-Reset']; - $this->rate_total = $header['RateLimit-Limit']; + $this->rate_remain = $header['X-RateLimit-Remaining']; + $this->rate_reset = $header['X-RateLimit-Reset']; + $this->rate_total = $header['X-RateLimit-Limit']; } /**