We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bfef8c commit ab9f1f7Copy full SHA for ab9f1f7
src/Uri.php
@@ -112,7 +112,7 @@ public function __construct(
112
$password = ''
113
) {
114
$this->scheme = $this->filterScheme($scheme);
115
- $this->host = $host;
+ $this->host = strtolower($host);
116
$this->port = $this->filterPort($port);
117
$this->path = empty($path) ? '/' : $this->filterPath($path);
118
$this->query = $this->filterQuery($query);
@@ -390,7 +390,7 @@ public function getHost()
390
public function withHost($host)
391
{
392
$clone = clone $this;
393
- $clone->host = $host;
+ $clone->host = strtolower($host);
394
395
return $clone;
396
}
0 commit comments