Fix HTTPClient

This commit is contained in:
Philipp Holzer 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
1 changed files with 2 additions and 3 deletions

View 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');