Skip to content

Commit 7d0e831

Browse files
authored
Merge pull request #1620 from lyrixx/router
[Routing] Also copy the Host in the Router::match
2 parents 8c24b71 + 58c980f commit 7d0e831

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Bridge/Symfony/Routing/Router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function match($pathInfo)
7575
$context = (new RequestContext())->fromRequest($request);
7676
$context->setPathInfo($pathInfo);
7777
$context->setScheme($baseContext->getScheme());
78+
$context->setHost($baseContext->getHost());
7879

7980
try {
8081
$this->router->setContext($context);

0 commit comments

Comments
 (0)