Skip to content

Commit a2843d5

Browse files
authored
Merge pull request #702 from skipperbent/v5-development
Version 5.4.1.7
2 parents 8923bee + 0634ba7 commit a2843d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Pecee/Http/Url.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(?string $url)
7272

7373
public function parse(?string $url, bool $setOriginalPath = false): self
7474
{
75-
if ($url !== null && $url !== '/') {
75+
if ($url !== null) {
7676
$data = $this->parseUrl($url);
7777

7878
$this->scheme = $data['scheme'] ?? null;
@@ -95,6 +95,7 @@ public function parse(?string $url, bool $setOriginalPath = false): self
9595
$this->setQueryString($data['query']);
9696
}
9797
}
98+
9899
return $this;
99100
}
100101

0 commit comments

Comments
 (0)