From f01d882e6cfaba26ae85e5d2789971f5393bee00 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 25 Aug 2021 00:40:15 +0200 Subject: [PATCH] Fix HTTPClient --- src/Network/HTTPClient.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Network/HTTPClient.php b/src/Network/HTTPClient.php index cd1d9e46b3..f4653628ff 100644 --- a/src/Network/HTTPClient.php +++ b/src/Network/HTTPClient.php @@ -131,10 +131,9 @@ class HTTPClient implements IHTTPClient try { switch ($method) { case 'get': - $response = $this->client->get($url, $conf); - break; case 'head': - $response = $this->client->head($url, $conf); + case 'post': + $response = $this->client->$method($url, $conf); break; default: throw new TransferException('Invalid method');