You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently commit d79f2fc (in version 4.5.0) indirectly broke a simple use case when not using this option at all.
If you try to pass a $uri to the Client#request() method (or any of the request family for that matter) which contains query, Guzzle will disregard it and instead it will use query from the $options array. Even though we didn't put query in the $options array, GuzzleBundle put it in the default options array (or default config - Client constructor's first argument) as an empty array() (because symfony configuration component provides default value if one is not present) and after guzzle merges $options with $this->config it now has a query element.
Should be easy to fix in GuzzleExtension by unsetting query from $options array after line 54 if it is an empty array.
The text was updated successfully, but these errors were encountered:
I had the same issue after update to 4.5.0
Rewrite all my client->get($uri) where $uri had a query string (/api?someparam=value) with client->get($uriWithoutQueryString, array('query' => array('someparam' => 'value')));
Apparently commit d79f2fc (in version 4.5.0) indirectly broke a simple use case when not using this option at all.
If you try to pass a
$uri
to theClient#request()
method (or any of therequest
family for that matter) which containsquery
, Guzzle will disregard it and instead it will usequery
from the$options
array. Even though we didn't putquery
in the$options
array, GuzzleBundle put it in the default options array (or default config - Client constructor's first argument) as an emptyarray()
(because symfony configuration component provides default value if one is not present) and after guzzle merges$options
with$this->config
it now has aquery
element.Should be easy to fix in GuzzleExtension by unsetting
query
from$options
array after line 54 if it is an empty array.The text was updated successfully, but these errors were encountered: