Skip to content

Commit

Permalink
Fix host url
Browse files Browse the repository at this point in the history
  • Loading branch information
skipperbent committed Nov 10, 2024
1 parent 90418eb commit 301d551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pecee/Http/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public function parse(?string $url, bool $setOriginalPath = false): self
if ($url !== null) {
$data = $this->parseUrl($url);

$this->scheme = $data['scheme'] ?? null;
$this->host = $data['host'] ?? null;
$this->scheme = $data['scheme'] ?? $this->scheme;
$this->host = $data['host'] ?? $this->host;
$this->port = $data['port'] ?? null;
$this->username = $data['user'] ?? null;
$this->password = $data['pass'] ?? null;
Expand Down

0 comments on commit 301d551

Please sign in to comment.