]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/HttpClientFactory.php
Cleared CookieJar to avoid websites who use cookies for analytics
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Helper / HttpClientFactory.php
index 3e1d1ed5d7f1f77273e0b4a89a61d5d13d82001a..161a5e9fb41fc535b3dd8d517efd1684c7ff40f8 100644 (file)
@@ -35,6 +35,8 @@ class HttpClientFactory
      */
     public function buildHttpClient()
     {
+        // we clear the cookie to avoid websites who use cookies for analytics
+        $this->cookieJar->clear();
         // need to set the (shared) cookie jar
         $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]);
         $client->getEmitter()->attach($this->authenticatorSubscriber);