Skip to content

Commit e3902c5

Browse files
committed
fix: add delete as an http method that's allowed a body
1 parent 097526f commit e3902c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ private function request(string $method, string $uri, array $body = []): Collect
766766
$options['headers']['Authorization'] = 'Bearer '.$this->cliConfiguration->getAccessToken();
767767
}
768768

769-
if (in_array($method, ['post', 'put'])) {
769+
if (in_array($method, ['delete', 'post', 'put'])) {
770770
$options['json'] = $body;
771771
}
772772

0 commit comments

Comments
 (0)