Skip to content

Commit

Permalink
use http_build_query for deepObject support
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jan 4, 2022
1 parent 361b593 commit 5bfa396
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ use {{invokerPackage}}\ObjectSerializer;
$operationHost = $operationHosts[$this->hostIndex];

{{/servers.0}}
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
$query = http_build_query($queryParams, "", null, PHP_QUERY_RFC3986);
return new Request(
'{{httpMethod}}',
{{^servers.0}}$this->config->getHost(){{/servers.0}}{{#servers.0}}$operationHost{{/servers.0}} . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down

0 comments on commit 5bfa396

Please sign in to comment.