forked from wallabag/wallabag
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.
This commit is contained in:
@ -51,6 +51,7 @@ class HttpClientFactory
|
||||
$this->cookieJar->clear();
|
||||
// need to set the (shared) cookie jar
|
||||
$client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]);
|
||||
|
||||
foreach ($this->subscribers as $subscriber) {
|
||||
$client->getEmitter()->attach($subscriber);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user