We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0634ba7 commit 90418ebCopy full SHA for 90418eb
src/Pecee/Http/Request.php
@@ -395,6 +395,10 @@ public function setUrl(Url $url): void
395
{
396
$this->url = $url;
397
398
+ if ($this->getHost() !== null) {
399
+ $url->setHost($this->getHost());
400
+ }
401
+
402
if ($this->isSecure() === true) {
403
$this->url->setScheme('https');
404
}
src/Pecee/Http/Url.php
@@ -541,7 +541,7 @@ public function jsonSerialize(): string
541
542
public function __toString(): string
543
544
- return $this->getHost(true) . $this->getRelativeUrl();
+ return $this->getRelativeUrl();
545
546
547
0 commit comments