diff --git a/src/EtherpadLite/Request.php b/src/EtherpadLite/Request.php index 87f94cf..f2057b4 100644 --- a/src/EtherpadLite/Request.php +++ b/src/EtherpadLite/Request.php @@ -45,7 +45,10 @@ public function __construct(string $url, string $apiKey, string $method, $args = */ public function send(): ResponseInterface { - $client = new HttpClient(['base_uri' => $this->url]); + $client = new HttpClient([ + 'base_uri' => $this->url, + 'timeout' => $this->args['timeout'] ?? 0, + ]); return $client->get( $this->getUrlPath(),