Remove withQueryParameters on get request

This commit is contained in:
NeonSpectrum 2024-04-19 11:37:02 +08:00
parent 11e6430d42
commit c0b1345e90

View File

@ -26,11 +26,10 @@ class DaemonFileRepository extends DaemonRepository
Assert::isInstanceOf($this->server, Server::class); Assert::isInstanceOf($this->server, Server::class);
try { try {
$response = $this->getHttpClient() $response = $this->getHttpClient()->get(
->withQueryParameters(['file' => $path]) sprintf('/api/servers/%s/files/contents', $this->server->uuid),
->get( ['file' => $path]
sprintf('/api/servers/%s/files/contents', $this->server->uuid) );
);
} catch (ClientException|TransferException $exception) { } catch (ClientException|TransferException $exception) {
throw new DaemonConnectionException($exception); throw new DaemonConnectionException($exception);
} }