Browse Source

Update Request.php

walkor 2 years ago
parent
commit
541777531e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Protocols/Http/Request.php

+ 1 - 1
src/Protocols/Http/Request.php

@@ -234,7 +234,7 @@ class Request
     public function host(bool $withoutPort = false): ?string
     {
         $host = $this->header('host');
-        if ($host && $without_port) {
+        if ($host && $withoutPort) {
             return preg_replace('/:\d{1,5}$/', '', $host);
         }
         return $host;