Skip to content

Commit

Permalink
Back port 0.14.x case-sensitivity fix for RateLimit handling to 0.13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Sep 17, 2020
1 parent ffa6a3b commit f4ab054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/http/CurlHttpClient.php
Expand Up @@ -85,7 +85,7 @@ public function handleHeaderInput($ch, string $line): int {
if ($header === 'Etag') {
$this->etag = new ETag($value);
} else if (preg_match('/^(X-)?RateLimit-(.*)$/i', $header, $matches) === 1) {
$this->rateLimitHeaders[$matches[2]] = $value;
$this->rateLimitHeaders[\ucfirst(\strtolower($matches[2]))] = $value;
}

return \mb_strlen($line);
Expand Down

0 comments on commit f4ab054

Please sign in to comment.