Fix HTTPClient

This commit is contained in:
Philipp 2021-08-25 00:40:15 +02:00
parent d4a233a149
commit f01d882e6c
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -131,10 +131,9 @@ class HTTPClient implements IHTTPClient
try { try {
switch ($method) { switch ($method) {
case 'get': case 'get':
$response = $this->client->get($url, $conf);
break;
case 'head': case 'head':
$response = $this->client->head($url, $conf); case 'post':
$response = $this->client->$method($url, $conf);
break; break;
default: default:
throw new TransferException('Invalid method'); throw new TransferException('Invalid method');