Skip to content

Commit d3d5d62

Browse files
author
Dominik Hošic
committed
Updating request headers name
1 parent 9ee789f commit d3d5d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getRateLimitRemaining(): int {
9292
* @return float Remaining daily credits
9393
*/
9494
public function getDailyCreditsLeft(): float {
95-
return reset($this->headers['x-foxentry-daily-credits-left']);
95+
return reset($this->headers['foxentry-daily-credits-left']);
9696
}
9797

9898
/**
@@ -101,7 +101,7 @@ public function getDailyCreditsLeft(): float {
101101
* @return int Daily credits limit
102102
*/
103103
public function getDailyCreditsLimit(): int {
104-
return reset($this->headers['x-foxentry-daily-credits-limit']);
104+
return reset($this->headers['foxentry-daily-credits-limit']);
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)