]> git.mxchange.org Git - friendica.git/commitdiff
Fix HTTPClient
authorPhilipp <admin@philipp.info>
Tue, 24 Aug 2021 22:40:15 +0000 (00:40 +0200)
committerPhilipp <admin@philipp.info>
Wed, 25 Aug 2021 12:22:43 +0000 (14:22 +0200)
src/Network/HTTPClient.php

index cd1d9e46b30a3fe3fa21306e12fe07c279d42a3b..f4653628ffabaa78082d97c8891e9e9ee652849a 100644 (file)
@@ -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');