Skip to content

Commit

Permalink
Minor fine tuning on user provided url when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Aug 8, 2024
1 parent 33597c9 commit 814bfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/agama-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async fn run_command(cli: Cli) -> Result<(), ServiceError> {
Commands::Auth(subcommand) => {
let mut client = BaseHTTPClient::bare()?;

client.base_url = cli.opts.api;
client.base_url = cli.opts.api.strip_suffix("/").unwrap_or(client.base_url.as_str()).to_string();

run_auth_cmd(client, subcommand).await?;
}
Expand Down

0 comments on commit 814bfbe

Please sign in to comment.