Skip to content

Commit

Permalink
Merge pull request #3202 from MGatner/feature-slash
Browse files Browse the repository at this point in the history
Fix extra slash in URI
  • Loading branch information
michalsn authored Jul 3, 2020
2 parents dbadbaa + 0ac4934 commit 8bd6644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Test/FeatureTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function options(string $path, array $params = null)
protected function setupRequest(string $method, string $path = null): IncomingRequest
{
$config = config(App::class);
$uri = new URI($config->baseURL . '/' . trim($path, '/ '));
$uri = new URI(rtrim($config->baseURL, '/') . '/' . trim($path, '/ '));

$request = new IncomingRequest($config, clone($uri), null, new UserAgent());
$request->uri = $uri;
Expand Down

0 comments on commit 8bd6644

Please sign in to comment.