aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Helper/HttpClientFactory.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php
index 3e1d1ed5..161a5e9f 100644
--- a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php
+++ b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php
@@ -35,6 +35,8 @@ class HttpClientFactory
35 */ 35 */
36 public function buildHttpClient() 36 public function buildHttpClient()
37 { 37 {
38 // we clear the cookie to avoid websites who use cookies for analytics
39 $this->cookieJar->clear();
38 // need to set the (shared) cookie jar 40 // need to set the (shared) cookie jar
39 $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]); 41 $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]);
40 $client->getEmitter()->attach($this->authenticatorSubscriber); 42 $client->getEmitter()->attach($this->authenticatorSubscriber);