Skip to content

Commit

Permalink
fix(ui): Import cURL removes trailing slash from URL (resolves #307)
Browse files Browse the repository at this point in the history
  • Loading branch information
flawiddsouza committed Jan 28, 2025
1 parent 699688a commit cbda62c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ui/src/parsers/curl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ const importCommand = (parseEntries: ParseEntry[]): ImportRequest => {
}))

url = href.replace(search, '').replace(/\/$/, '')

if (urlValue.endsWith('/')) {
url += '/'
}
} catch (error) {}

/// /////// Authentication //////////
Expand Down

0 comments on commit cbda62c

Please sign in to comment.