1
0
mirror of https://github.com/miguel456/php-http-virtualmin-api synced 2023-07-28 01:52:31 +00:00

Update HttpClient.php

This commit is contained in:
Tsvetelin Tsonev 2018-04-21 12:41:43 +02:00 committed by GitHub
parent aef6611307
commit f67e5139d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ class HttpClient implements HttpClientInterface {
* @param string $responseType Response format - json, xml.
*/
public function __construct(string $url, int $port, string $rootName, string $rootPassword, string $responseType) {
$this->client = new \GuzzleHttp\Client(array('curl' => array(CURLOPT_SSL_VERIFYPEER => false)));
$this->client = new \GuzzleHttp\Client(array('curl' => array('CURLOPT_SSL_VERIFYPEER' => false)));
$this->queryStringBuilder = new QueryStringBuilder();
$this->rootName = $rootName;
$this->rootPassword = $rootPassword;