Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default guzzle cookies settings #34

Merged
merged 3 commits into from
Jan 7, 2016

Conversation

bdunogier
Copy link
Contributor

Changes the guzzle call to use the default cookie settings.
Also set the default guzzle client to accept cookies by default.

This allows customization of the guzzle client's cookies handling by providing a custom one with a CookieJar.

@bdunogier
Copy link
Contributor Author

Tests fixed (at least on HttpClient).

@@ -75,7 +75,9 @@ public function __construct($config = array(), Client $client = null)
$this->logger
);
$this->httpClient = new HttpClient(
$client ?: new Client(array('handler' => new SafeCurlHandler())),
$guzzleClient = $client ?: new Client(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to store the client in a variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. Probably a leftover :-)

j0k3r added a commit that referenced this pull request Jan 7, 2016
Use default guzzle cookies settings
@j0k3r j0k3r merged commit c396c50 into j0k3r:master Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants