Fix HTTPClient
This commit is contained in:
parent
d4a233a149
commit
f01d882e6c
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue