We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d47aea commit 1337d6fCopy full SHA for 1337d6f
system/HTTP/OutgoingRequest.php
@@ -59,9 +59,8 @@ public function __construct(
59
private function getHostFromUri(URI $uri): string
60
{
61
$host = $uri->getHost();
62
- $host .= $uri->getPort() ? ':' . $uri->getPort() : '';
63
64
- return $host;
+ return $host . ($uri->getPort() ? ':' . $uri->getPort() : '');
65
}
66
67
/**
@@ -157,6 +156,6 @@ private function isHostHeaderMissingOrEmpty(): bool
157
156
return true;
158
159
160
- return (bool) ($this->header('Host')->getValue() === '');
+ return $this->header('Host')->getValue() === '';
161
162
0 commit comments