Skip to content

Commit 8309735

Browse files
committed
refactor: remove unused private method
1 parent 1c4a927 commit 8309735

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

system/HTTP/IncomingRequest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -468,30 +468,6 @@ public function setPath(string $path, ?App $config = null)
468468
return $this;
469469
}
470470

471-
/**
472-
* @deprecated Moved to SiteURIFactory.
473-
*/
474-
private function determineHost(App $config, string $baseURL): string
475-
{
476-
$host = parse_url($baseURL, PHP_URL_HOST);
477-
478-
if (empty($config->allowedHostnames)) {
479-
return $host;
480-
}
481-
482-
// Update host if it is valid.
483-
$httpHostPort = $this->getServer('HTTP_HOST');
484-
if ($httpHostPort !== null) {
485-
[$httpHost] = explode(':', $httpHostPort, 2);
486-
487-
if (in_array($httpHost, $config->allowedHostnames, true)) {
488-
$host = $httpHost;
489-
}
490-
}
491-
492-
return $host;
493-
}
494-
495471
/**
496472
* Returns the URI path relative to baseURL,
497473
* running detection as necessary.

0 commit comments

Comments
 (0)