Skip to content

Commit 0909d02

Browse files
committed
docs: update comments
1 parent 9ce7cd7 commit 0909d02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/HTTP/IncomingRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ public function setPath(string $path, ?App $config = null)
400400
// baseURL, so let's help them out.
401401
$baseURL = ($config->baseURL === '') ? $config->baseURL : rtrim($config->baseURL, '/ ') . '/';
402402

403-
// Based on our baseURL provided by the developer
404-
// set our current domain name, scheme
403+
// Based on our baseURL and allowedHostnames provided by the developer
404+
// and HTTP_HOST, set our current domain name, scheme.
405405
if ($baseURL !== '') {
406406
$host = $this->determineHost($config, $baseURL);
407407

@@ -417,7 +417,7 @@ public function setPath(string $path, ?App $config = null)
417417
// Ensure we have any query vars
418418
$this->uri->setQuery($_SERVER['QUERY_STRING'] ?? '');
419419

420-
// Check if the baseURL scheme needs to be coerced into its secure version
420+
// Check if the scheme needs to be coerced into its secure version
421421
if ($config->forceGlobalSecureRequests && $this->uri->getScheme() === 'http') {
422422
$this->uri->setScheme('https');
423423
}

0 commit comments

Comments
 (0)