From 12367648fae2aebd981b9cde83599a34682221be Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 25 Aug 2021 13:59:37 +0200 Subject: [PATCH] Add suggestions --- src/Factory/HTTPClientFactory.php | 2 +- src/Network/HTTPClient.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Factory/HTTPClientFactory.php b/src/Factory/HTTPClientFactory.php index 040ad7514..7da2718d7 100644 --- a/src/Factory/HTTPClientFactory.php +++ b/src/Factory/HTTPClientFactory.php @@ -86,7 +86,7 @@ class HTTPClientFactory extends BaseFactory RequestOptions::CONNECT_TIMEOUT => 10, RequestOptions::TIMEOUT => $this->config->get('system', 'curl_timeout', 60), // by default we will allow self-signed certs - // but you can override this + // but it can be overridden RequestOptions::VERIFY => (bool)$this->config->get('system', 'verifyssl'), RequestOptions::PROXY => $proxy, RequestOptions::HEADERS => [ diff --git a/src/Network/HTTPClient.php b/src/Network/HTTPClient.php index 90f7775df..72f11fa3e 100644 --- a/src/Network/HTTPClient.php +++ b/src/Network/HTTPClient.php @@ -135,6 +135,8 @@ class HTTPClient implements IHTTPClient case 'get': case 'head': case 'post': + case 'put': + case 'delete': $response = $this->client->$method($url, $conf); break; default: