Skip to content

Commit 6df2a9b

Browse files
authored
remove any empty parts
1 parent 3aa3c40 commit 6df2a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/ExportPostmanCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function makeRequest($route, $method, $routeHeaders, $requestRules)
223223
'url' => [
224224
'raw' => '{{base_url}}/'.$uri->replaceMatches('/{([[:alnum:]]+)}/', ':$1'),
225225
'host' => ['{{base_url}}'],
226-
'path' => $uri->explode('/'),
226+
'path' => $uri->explode('/')->filter(),
227227
'variable' => $variables->transform(function ($variable) {
228228
return ['key' => $variable, 'value' => ''];
229229
})->all(),

0 commit comments

Comments
 (0)