Re-evaluate base after root path change

This commit is contained in:
Dennis Eichhorn 2019-05-27 21:56:21 +02:00
parent 8f0688f46d
commit 31812f701c

View File

@ -247,6 +247,7 @@ final class Http implements UriInterface
public function setRootPath(string $root) : void
{
$this->rootPath = \rtrim($root, '/');
$this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath;
}
/**