Skip to content

Commit e50755d

Browse files
Arif Rahman Hakimdg
authored andcommitted
fix return request when no-content (http code : 204)
1 parent 90d6ea1 commit e50755d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Twitter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ public function request(string $resource, string $method, array $data = [], arra
352352
: "Server error #$code with answer $result",
353353
$code
354354
);
355+
} elseif ($code === 204) {
356+
$payload = true;
355357
}
356358

357359
return $payload;

0 commit comments

Comments
 (0)