From: Roland Häder Date: Tue, 16 Jan 2024 19:11:59 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=075915e3b74686a67a7d4698ec60d54478c497e4;p=friendica.git Continued: - moved to new configuration category 'http_client' (thanks to @MrPetovan) --- diff --git a/src/Network/HTTPClient/Factory/HttpClient.php b/src/Network/HTTPClient/Factory/HttpClient.php index fca5d53130..eaf6003ccb 100644 --- a/src/Network/HTTPClient/Factory/HttpClient.php +++ b/src/Network/HTTPClient/Factory/HttpClient.php @@ -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)); diff --git a/static/defaults.config.php b/static/defaults.config.php index 2552e7d35f..a0d6157694 100644 --- a/static/defaults.config.php +++ b/static/defaults.config.php @@ -613,7 +613,8 @@ return [ // xrd_timeout (Integer) // Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout 'xrd_timeout' => 20, - + ], + 'http_client' => [ // max_response_data_size (Integer) // Maximum allowed response data size in Bytes, default is hard-coded value from code 'max_response_data_size' => 1000000,