We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10bba82 + 74da8cc commit 844b585Copy full SHA for 844b585
src/Http/Request.php
@@ -98,8 +98,11 @@ public function getRequestUri()
98
99
// GET/DELETE: move parameters into query
100
if ($this->isGetOrDeleteMethod() && !empty($this->params)) {
101
- $this->uri .= strpos($this->uri, '?') === false ? '?' : '&';
102
- $this->uri .= http_build_query($this->params);
+ $query = http_build_query($this->params);
+ if ($query !== '') {
103
+ $this->uri .= strpos($this->uri, '?') === false ? '?' : '&';
104
+ $this->uri .= $query;
105
+ }
106
}
107
108
$url = $this->baseUri . $this->uri;
0 commit comments