mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
Use temporary files for the URLResolver CookieJar
This commit is contained in:
parent
cf0b7b709b
commit
749f3e158b
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class HTTPClientFactory extends BaseFactory
|
|||
$resolver->setMaxResponseDataSize(1000000);
|
||||
// Designate a temporary file that will store cookies during the session.
|
||||
// Some websites test the browser for cookie support, so this enhances results.
|
||||
$resolver->setCookieJar(get_temppath() . '/url_resolver.cookie', true);
|
||||
$resolver->setCookieJar(tempnam(get_temppath(), 'resolver-cookie-'));
|
||||
|
||||
return new HTTPClient($logger, $this->profiler, $guzzle, $resolver);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue