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

Commit

Permalink
don't set the URI port as a string. I inadvertantly passed the new po…
Browse files Browse the repository at this point in the history
…rt in as a string instead of as an integer
  • Loading branch information
Adam Dear committed Feb 6, 2016
1 parent 9c130da commit 9c31bd9
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 9c31bd9

Please sign in to comment.