Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'patch-4' of https://github.com/mishak87/zf2 into hotfix…
Browse files Browse the repository at this point in the history
…/http-client-scheme-casting
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ public function send(Request $request = null)
}
// If we have no ports, set the defaults
if (!$uri->getPort()) {
$uri->setPort(($uri->getScheme() == 'https' ? 443 : 80));
$uri->setPort($uri->getScheme() == 'https' ? 443 : 80);
}

// method
Expand All @@ -811,7 +811,7 @@ public function send(Request $request = null)
// headers
$headers = $this->prepareHeaders($body,$uri);

$secure = ($uri->getScheme() == 'https') ? true : false;
$secure = $uri->getScheme() == 'https';

// cookies
$cookie = $this->prepareCookies($uri->getHost(), $uri->getPath(), $secure);
Expand Down

0 comments on commit e3217d3

Please # to comment.