Merge pull request #10635 from nupplaphil/bug/urlresolver

Use temporary files for the URLResolver CookieJar
pull/10642/head
Hypolite Petovan 2021-08-25 15:00:26 -04:00 zatwierdzone przez GitHub
commit c554b629e7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}