Skip to content

Commit a4ba66d

Browse files
committed
refactor: remove unused private method
1 parent 3207842 commit a4ba66d

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

system/HTTP/IncomingRequest.php

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

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

0 commit comments

Comments
 (0)