Skip to content

Commit 02dd0e9

Browse files
committed
Trim the root request path.
Signed-off-by: Jason Lewis <[email protected]>
1 parent e43f067 commit 02dd0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ protected function createRequest($verb, $uri, $parameters)
453453
// If the URI does not have a scheme then we can assume that there it is not an
454454
// absolute URI, in this case we'll prefix the root requests path to the URI.
455455
if (! parse_url($uri, PHP_URL_SCHEME)) {
456-
$uri = $this->getRootRequest()->root().'/'.ltrim($uri);
456+
$uri = rtrim($this->getRootRequest()->root(), '/').'/'.ltrim($uri);
457457
}
458458

459459
$request = InternalRequest::create($uri, $verb, $parameters, $this->cookies, $this->uploads, [], $this->content);

0 commit comments

Comments
 (0)