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

Commit

Permalink
Merge pull request #26 from adear11/setPortAsIntegerNotString
Browse files Browse the repository at this point in the history
Don't pass withPort a string. Should be set with an integer
  • Loading branch information
oscarotero committed Feb 6, 2016
2 parents 9c130da + 9c31bd9 commit e47dc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/Https.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __invoke(RequestInterface $request, ResponseInterface $response,
$uri = $request->getUri();

if (strtolower($uri->getScheme()) !== 'https') {
$uri = $uri->withScheme('https')->withPort('443');
$uri = $uri->withScheme('https')->withPort(443);

if ($this->redirectStatus) {
return self::getRedirectResponse($this->redirectStatus, $uri, $response);
Expand Down

0 comments on commit e47dc8f

Please sign in to comment.