Renamed 'http_client' -> 'performance'

This commit is contained in:
Roland Häder 2024-01-16 20:32:17 +01:00
parent 075915e3b7
commit 7d3723592b
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ class HttpClient extends BaseFactory
$resolver->setMaxRedirects(10); $resolver->setMaxRedirects(10);
$resolver->setRequestTimeout(10); $resolver->setRequestTimeout(10);
// if the file is too large then exit // if the file is too large then exit
$resolver->setMaxResponseDataSize($this->config->get('http_client', 'max_response_data_size', 1000000)); $resolver->setMaxResponseDataSize($this->config->get('performance', 'max_response_data_size', 1000000));
// Designate a temporary file that will store cookies during the session. // Designate a temporary file that will store cookies during the session.
// Some websites test the browser for cookie support, so this enhances results. // Some websites test the browser for cookie support, so this enhances results.
$resolver->setCookieJar(System::getTempPath() .'/resolver-cookie-' . Strings::getRandomName(10)); $resolver->setCookieJar(System::getTempPath() .'/resolver-cookie-' . Strings::getRandomName(10));

View file

@ -614,7 +614,7 @@ return [
// Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout // Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout
'xrd_timeout' => 20, 'xrd_timeout' => 20,
], ],
'http_client' => [ 'performance' => [
// max_response_data_size (Integer) // max_response_data_size (Integer)
// Maximum allowed response data size in Bytes, default is hard-coded value from code // Maximum allowed response data size in Bytes, default is hard-coded value from code
'max_response_data_size' => 1000000, 'max_response_data_size' => 1000000,