Add 30 seconds timeout by default to all requests

This commit is contained in:
dinamiko 2021-06-21 16:45:19 +02:00
parent f1555d4db4
commit 1beb414f81

View file

@ -24,6 +24,8 @@ trait RequestTrait {
*/
private function request( string $url, array $args ) {
$args['timeout'] = 30;
/**
* This filter can be used to alter the request args.
* For example, during testing, the PayPal-Mock-Response header could be