We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a130d68 + 48df0e1 commit 4b1da6bCopy full SHA for 4b1da6b
1 file changed
src/IO/Request/ServerTrait.php
@@ -163,7 +163,7 @@ public function setHost(string $protocol)
163
$uri = $this->getServer('REQUEST_URI');
164
165
$hostname = sprintf('%s://%s', $protocol, $host);
166
- if ($port != 80 && $port != 443) {
+ if (strpos($host ?? '', ':') === false && $port != 80 && $port != 443) {
167
$hostname .= ':' . $port;
168
}
169
0 commit comments