Don't need json key anymore
This commit is contained in:
parent
264df1876b
commit
57288ff6c8
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ class Server extends Model
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [
|
return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [
|
||||||
'json' => ['commands' => is_array($command) ? $command : [$command]],
|
'commands' => is_array($command) ? $command : [$command],
|
||||||
])->toPsrResponse();
|
])->toPsrResponse();
|
||||||
} catch (TransferException $exception) {
|
} catch (TransferException $exception) {
|
||||||
throw new DaemonConnectionException($exception);
|
throw new DaemonConnectionException($exception);
|
||||||
|
|
Loading…
Add table
Reference in a new issue