add port to base path

This commit is contained in:
Dennis Eichhorn 2019-03-14 18:51:05 +01:00
parent bddeff5a0c
commit 87ed2174d8

View File

@ -174,7 +174,7 @@ final class Http implements UriInterface
$this->query = \array_change_key_case($this->query, CASE_LOWER);
$this->fragment = $url['fragment'] ?? '';
$this->base = $this->scheme . '://' . $this->host . $this->rootPath;
$this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath;
}
/**