Skip to content

Commit

Permalink
Merge pull request api-platform#1620 from lyrixx/router
Browse files Browse the repository at this point in the history
[Routing] Also copy the Host in the Router::match
  • Loading branch information
dunglas committed Jan 8, 2018
2 parents dbf3eda + 2e2a5d9 commit ac5b288
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Bridge/Symfony/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function match($pathInfo)
$context = (new RequestContext())->fromRequest($request);
$context->setPathInfo($pathInfo);
$context->setScheme($baseContext->getScheme());
$context->setHost($baseContext->getHost());

try {
$this->router->setContext($context);
Expand Down

0 comments on commit ac5b288

Please sign in to comment.