mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-14 08:43:03 +08:00
Merge pull request #493 from hausir/master
fixed request router cannot match when router has sub-domain
This commit is contained in:
@@ -203,6 +203,9 @@ class ResponseCallStrategy
|
||||
{
|
||||
// set the proper domain
|
||||
if ($route->getDomain()) {
|
||||
$request->headers->add([
|
||||
'HOST' => $route->getDomain(),
|
||||
]);
|
||||
$request->server->add([
|
||||
'HTTP_HOST' => $route->getDomain(),
|
||||
'SERVER_NAME' => $route->getDomain(),
|
||||
|
||||
Reference in New Issue
Block a user