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