1
0
Fork 0

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

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