]> git.mxchange.org Git - friendica.git/commitdiff
Ensure to set the network timeout
authorMichael <heluecht@pirati.ca>
Sat, 14 May 2022 09:53:12 +0000 (09:53 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 14 May 2022 09:53:12 +0000 (09:53 +0000)
src/Util/HTTPSignature.php

index b76c12f591e616eb603d0f2c6522254b029f3046..4a4f6a5710d306936d9058861fee379988f02e1b 100644 (file)
@@ -306,7 +306,7 @@ class HTTPSignature
 
                $headers['Content-Type'] = 'application/activity+json';
 
-               $postResult = DI::httpClient()->post($target, $content, $headers);
+               $postResult = DI::httpClient()->post($target, $content, $headers, DI::config()->get('system', 'curl_timeout'));
                $return_code = $postResult->getReturnCode();
 
                Logger::info('Transmit to ' . $target . ' returned ' . $return_code);