Skip to content

Commit

Permalink
Fixes an issue where Guzzle options were not being passed properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Mar 3, 2020
1 parent a451914 commit c365324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Connector/Client.php
Expand Up @@ -53,7 +53,10 @@ public static function factory(ConnectorInterface $connector)
*/
public function request(string $verb, string $path, array $options = [])
{
$options = $this->options;
// @TODO follow this up by removing $options from the parameters able
// to be passed into this function and instead solely relying on the
// addOption() method as this can then be tested.
$options = $this->options + $options;
$options['query'] = $this->query;

if (!empty($options['query']['filter']) && is_array($options['query']['filter'])) {
Expand Down

0 comments on commit c365324

Please sign in to comment.