Skip to content

Commit

Permalink
Disable SSL hostname checks here too.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 26, 2016
1 parent fe3b1f3 commit a8595e8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions framework/Http/lib/Horde/Http/Request/PeclhttpBase.php
Expand Up @@ -82,11 +82,16 @@ protected function _proxyType()
protected function _httpOptions()
{
// Set options
$httpOptions = array('headers' => $this->headers,
$httpOptions = array(
'headers' => $this->headers,
'redirect' => (int)$this->redirects,
'ssl' => array('verifypeer' => $this->verifyPeer),
'ssl' => array(
'verifypeer' => $this->verifyPeer,
'verifyhost' => $this->verifyPeer
),
'timeout' => $this->timeout,
'useragent' => $this->userAgent);
'useragent' => $this->userAgent
);

// Proxy settings
if ($this->proxyServer) {
Expand Down

0 comments on commit a8595e8

Please sign in to comment.