This commit is contained in:
2021-08-30 15:05:15 +08:00
parent 25803e3814
commit 574ad26ced
+2 -2
View File
@@ -210,9 +210,9 @@ class Uri implements UriInterface
$domain .= ':' . $this->port;
}
if (empty($this->query) && empty($this->fragment)) {
return $domain . '/' . $this->path;
return $domain . $this->path;
}
return sprintf('%s?%s#%s', $domain . '/' . $this->path,
return sprintf('%s?%s#%s', $domain . $this->path,
$this->query, $this->fragment);
}