From 9c31bd9990c44a1a9805fa7a68a9263fca7a822a Mon Sep 17 00:00:00 2001 From: Adam Dear Date: Sat, 6 Feb 2016 11:24:14 -0600 Subject: [PATCH] don't set the URI port as a string. I inadvertantly passed the new port in as a string instead of as an integer --- src/Middleware/Https.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/Https.php b/src/Middleware/Https.php index 8c38eef..8fa18a1 100644 --- a/src/Middleware/Https.php +++ b/src/Middleware/Https.php @@ -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);