diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-09 22:25:18 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-09 22:53:42 +0200 |
commit | 94b232bbb8de4699911a6446a1a96f75370cab50 (patch) | |
tree | 9f6b43ca6613e800e1cf1262bb1a79139cda8d67 /src/Wallabag/CoreBundle/Helper/HttpClientFactory.php | |
parent | 0eb8220204953b874ebd2dbd0362973f3f45074c (diff) | |
download | wallabag-94b232bbb8de4699911a6446a1a96f75370cab50.tar.gz wallabag-94b232bbb8de4699911a6446a1a96f75370cab50.tar.zst wallabag-94b232bbb8de4699911a6446a1a96f75370cab50.zip |
Skip auth when no credentials are found
If we can’t find a credential for the current host, even if it required login, we won’t add them and website will be fetched without any login.
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/HttpClientFactory.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/HttpClientFactory.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php index 11ef26d8..43f5b119 100644 --- a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php +++ b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php | |||
@@ -51,6 +51,7 @@ class HttpClientFactory | |||
51 | $this->cookieJar->clear(); | 51 | $this->cookieJar->clear(); |
52 | // need to set the (shared) cookie jar | 52 | // need to set the (shared) cookie jar |
53 | $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]); | 53 | $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]); |
54 | |||
54 | foreach ($this->subscribers as $subscriber) { | 55 | foreach ($this->subscribers as $subscriber) { |
55 | $client->getEmitter()->attach($subscriber); | 56 | $client->getEmitter()->attach($subscriber); |
56 | } | 57 | } |