Skip to content

Commit

Permalink
BUGFIX: Add arguments to query
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Apr 5, 2020
1 parent 7771ecc commit 1a08f8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Transfer/RequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,14 @@ public function request($method, ElasticSearchClient $client, ?string $path = nu
list($path, $query) = explode('?', $path);
$uri = $uri->withQuery($query);
}

$uri = $uri->withPath($uri->getPath() . $path);
}

if (!empty($arguments)) {
$uri = $uri->withQuery($uri->getQuery() . '&' . http_build_query($arguments));
}

$request = $this->requestFactory->createServerRequest($method, $uri);

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

0 comments on commit 1a08f8e

Please sign in to comment.