Skip to content

Commit 1a08f8e

Browse files
committed
BUGFIX: Add arguments to query
1 parent 7771ecc commit 1a08f8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Classes/Transfer/RequestService.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,14 @@ public function request($method, ElasticSearchClient $client, ?string $path = nu
9494
list($path, $query) = explode('?', $path);
9595
$uri = $uri->withQuery($query);
9696
}
97+
9798
$uri = $uri->withPath($uri->getPath() . $path);
9899
}
99100

101+
if (!empty($arguments)) {
102+
$uri = $uri->withQuery($uri->getQuery() . '&' . http_build_query($arguments));
103+
}
104+
100105
$request = $this->requestFactory->createServerRequest($method, $uri);
101106

102107
// In some cases, $content will contain "null" as a string. Better be safe and handle this weird case:

0 commit comments

Comments
 (0)