Skip to content

Commit 4c2a7ed

Browse files
authored
Update Http.php
Fix missing quotes
1 parent 8911636 commit 4c2a7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Discord/Http.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Http
3838
*
3939
* @var string
4040
*/
41-
public const VERSION = 'v9.1.2';
41+
public const VERSION = 'v9.1.3';
4242

4343
/**
4444
* Current Discord HTTP API version.
@@ -319,7 +319,7 @@ protected function executeRequest(Request $request, Deferred $deferred = null):
319319
if ($statusCode == 429) {
320320
if (! isset($data->global)) {
321321
if ($response->hasHeader('X-RateLimit-Global')) {
322-
$data->global = $response->getHeader('X-RateLimit-Global')[0] == true;
322+
$data->global = $response->getHeader('X-RateLimit-Global')[0] == 'true';
323323
} else {
324324
// Some other 429
325325
$this->logger->error($request. ' does not contain global rate-limit value');

0 commit comments

Comments
 (0)