mirror of
https://github.com/friendica/friendica
synced 2025-04-28 19:44:23 +02:00
Continued:
- moved to new configuration category 'http_client' (thanks to @MrPetovan)
This commit is contained in:
parent
931c73d3c1
commit
075915e3b7
2 changed files with 3 additions and 2 deletions
|
@ -123,7 +123,7 @@ class HttpClient extends BaseFactory
|
|||
$resolver->setMaxRedirects(10);
|
||||
$resolver->setRequestTimeout(10);
|
||||
// if the file is too large then exit
|
||||
$resolver->setMaxResponseDataSize($this->config->get('system', 'max_response_data_size', 1000000));
|
||||
$resolver->setMaxResponseDataSize($this->config->get('http_client', 'max_response_data_size', 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(System::getTempPath() .'/resolver-cookie-' . Strings::getRandomName(10));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue