]> git.mxchange.org Git - friendica.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 16 Jan 2024 19:11:59 +0000 (20:11 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Jan 2024 00:05:48 +0000 (01:05 +0100)
- moved to new configuration category 'http_client' (thanks to @MrPetovan)

src/Network/HTTPClient/Factory/HttpClient.php
static/defaults.config.php

index fca5d53130fbba005e3d2eeb0bdb0a8da620fb7a..eaf6003ccb367533285404dd85a88ee195ac9607 100644 (file)
@@ -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));
index 40bb97ef53492088d716587f539ec9d3b1b7adf5..769e04df3c7931717efc7c447107506943dcfdc9 100644 (file)
@@ -614,10 +614,6 @@ return [
                // Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout
                'xrd_timeout' => 20,
 
-               // max_response_data_size (Integer)
-               // Maximum allowed response data size in Bytes, default is hard-coded value from code
-               'max_response_data_size' => 1000000,
-
                // only_valid_email_addresses (Boolean)
                // WARNING: You normally want to only accept valid email addreses. Under
                // rare conditions this however can be a hinderence, e.g. on your LAN
@@ -625,6 +621,11 @@ return [
                // surely not valid but still you need to signup to your testing instance
                'only_valid_email_addresses' => true,
        ],
+       '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,
+       ],
        'proxy' => [
                // forwarded_for_headers (String)
                // A comma separated list of all allowed header values to retrieve the real client IP